Django Translation UnicodeDecodeError

时间:2018-05-08 16:46:17

标签: django

我收到此错误

  

return _("%(user)s喜欢这个")%{'用户':   likes.first()。user.get_full_name()}

     

UnicodeDecodeError:' ascii'编解码器   不能解码位置11的字节0xc5:序数不在范围(128)

我的django.po文件是

#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-05-08 16:21+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"


#: posts/models.py:1528 posts/models.py:1533
#, python-format
msgid "%(user)s liked this"
msgstr "%(user)s kişi sevdi"

请帮我解决这个问题。 感谢

0 个答案:

没有答案
相关问题