Monday, May 2, 2016

Python3 + makemessages = "invalid multibyte sequence"

Hallöchen!

With Django 1.9.5 and Python 3, I get warnings like

./jb_common/templates/404.html.py:35: invalid multibyte sequence

when I run "manage.py makemessages". The problem occurs only in
HTML files with (validly) UTF-8-encoded characters in them. In the
.po file, these characters are skipped. How can I fix this?

The problem does not occur with Python 2.

Tschö,
Torsten.

--
Torsten Bronger Jabber ID: torsten.bronger@jabber.rwth-aachen.de

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/87zis81iwk.fsf%40physik.rwth-aachen.de.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment