locale/django.po文件有7868行。有时makemessages命令可以正常工作,有时它会抛出以下错误:这很奇怪,因为错误信息中提到的django.pot文件的行数总是不同的。 而且不要忘记,有时相同的代码也可以正常工作,因此代码应该是没有问题的。
manage.py makemessages -l de
CommandError: errors happened while running msguniq
/app/xxx/locale/django.pot:1871: /app/xxx/locale/django.pot: input is not valid in "ASCII" encoding