#9212: German Umlauts and possible other foreign languages special characters
-------------------------------------------+--------------------------------
Reporter: nekron | Owner: nobody
Status: reopened | Milestone:
Component: Internationalization | Version: 1.1
Resolution: | Keywords: Umlauts
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Changes (by thie1210):
* status: closed => reopened
* version: SVN => 1.1
* resolution: fixed =>
Comment:
Hi guys,
I'm running xgettext version 0.14.1 here. The makemessages command was
working fine until I updated from v1.0 to v1.1. I now get the following
error:
{{{
File "/usr/lib/python2.3/site-
packages/django/core/management/commands/makemessages.py", line 166, in
make_messages msgs = msgs.decode('utf-8').encode('iso-8859-1')
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2009' in
position 600: ordinal not in range(256)
}}}
The file in questions, views.py, contains unicode strings and characters
(u2009, the thin space for instance),
It's true that version 0.14.1 of xgettext assume ASCII input files for
input. However, you can specify the encoding of the input files with the
"--from-code" option. And that's what's done in makemessages.py when
xgettext gets used at line 128.
I've bypassed the xgettext_reencodes_utf8 test in my makemessages.py file
and I'm now back up and running. I'm new to this so I don't know how to
make an official change. I guess we need a new solution for the original
issue too?
--
Ticket URL: <http://code.djangoproject.com/ticket/9212#comment:14>
Django <http://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
-~----------~----~----~----~------~----~------~--~---