2014-01-06 19 views
3

我的工作我的網站的翻譯,但是當我嘗試運行命令:本地化使用Django和了xgettext

manage.py makemessages --locale=bs 

我經常得到這樣的錯誤:

CommandError: errors happened while running xgettext on rjsmin.py 
xgettext: Non-ASCII string at .\compressor\filters\jsmin\rjsmin.py:59. 
      Please specify the source encoding through --from-code. 

我所做的殼呢?

回答

5

我有同樣的問題。在rjsmin.py的頂部,將「 - * - coding:ascii - * - 」更改爲「 - * - coding:utf-8 - * - 」