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

2012-03-27 Thread Javier Guerra Giraldez
On Tue, Mar 27, 2012 at 3:52 AM, Davide Setti  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

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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

2012-03-27 Thread Davide Setti
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?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Rc7vQY_Gnq8J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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

2012-03-08 Thread Tom Evans
On Thu, Mar 8, 2012 at 8:45 PM, Suteepat Damrongyingsupab
 wrote:
> 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?
>

Yes, just remove the BOM:

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

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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

2012-03-08 Thread Suteepat Damrongyingsupab
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?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/_1cUduYUkckJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.