Django error about utf8 with BOM when running "python manage.py compilemessages"

583 views
Skip to first unread message

Suteepat Damrongyingsupab

unread,
Mar 8, 2012, 3:45:40 PM3/8/12
to django...@googlegroups.com
I'm using the latest Django-1.4c1.
When I run the command "python manage.py compilemessages", I got the error as follows:
Error: The /home/admin/Django-1.4c1/tests/regressiontests/i18n/commands/locale/es_AR/LC_MESSAGES/django.po file has a BOM (Byte Order Mark). Django only supports .po files encoded in UTF-8 and without any BOM.

Has anyone got this error?

Tom Evans

unread,
Mar 8, 2012, 4:04:09 PM3/8/12
to django...@googlegroups.com

Yes, just remove the BOM:

http://en.wikipedia.org/wiki/Byte_order_mark

Cheers

Tom

Davide Setti

unread,
Mar 27, 2012, 4:52:20 AM3/27/12
to django...@googlegroups.com
On Thursday, March 8, 2012 10:04:09 PM UTC+1, Tom Evans wrote:

Yes, just remove the BOM:

http://en.wikipedia.org/wiki/Byte_order_mark

But that file is in django, not in his code, am i wrong?

Javier Guerra Giraldez

unread,
Mar 27, 2012, 6:40:18 AM3/27/12
to django...@googlegroups.com
On Tue, Mar 27, 2012 at 3:52 AM, Davide Setti <davide...@gmail.com> wrote:
> But that file is in django, not in his code, am i wrong?

many brain-dead editors silently add BOMs to files when saving. being
a .po file, i'd guess somebody did a small localization by editing it
with the wrong tool.

--
Javier

Reply all
Reply to author
Forward
0 new messages