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
最佳答案
正如 Andrey Shipilov 在评论中提到的,这似乎在 Django 2.1 中已修复 http://code.djangoproject.com/ticket/29452
关于python - Django Makemessages CommandError ASCII 编码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44432633/