#18459: makemessages - problem with Unicode
-------------------------------------+-------------------------------------
Reporter: julio@… | Owner: nobody
Type: Bug | Status: new
Component: | Version: master
Internationalization | Resolution:
Severity: Normal | Triage Stage:
Keywords: i18n, makemessages, | Unreviewed
unicode | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Comment (by julio@…):
Replying to [comment:1 claudep]:
> The first error you mention has been fixed in
90985048fc1882483794e6734eb91401aefbe768
>
> For the second one, we'd need some more details. Try to increase
verbosity (--verbosity=2).
----
Makemessages had some problems with 2 files in my static folder. One of
them (''list.txt'') had the character "\u0096":
{{{
Text <96> Text
Text – Text
}}}
And the other was encoded using ISO-8859 (had latin words like
"''inglês''" and "''alemão''").
The error with increased verbosity:
{{{
$ ../manage.py makemessages --all --verbosity 2
processing file list.txt in ./arquivos/static
UnicodeDecodeError: 'utf8' codec can't decode byte 0x96 in position 5:
invalid start byte
}}}
Converting those files to UTF-8 using '''native2ascii''' solved the
problem.
--
Ticket URL: <https://code.djangoproject.com/ticket/18459#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.