Python3 + makemessages = "invalid multibyte sequence"

187 views
Skip to first unread message

Torsten Bronger

unread,
May 2, 2016, 1:16:00 PM5/2/16
to django...@googlegroups.com
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...@jabber.rwth-aachen.de

Torsten Bronger

unread,
May 3, 2016, 8:27:02 AM5/3/16
to django...@googlegroups.com
Hallöchen!

Torsten Bronger writes:

> 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.

This seems to be the issue:
https://code.djangoproject.com/ticket/26093
Reply all
Reply to author
Forward
0 new messages