Hi,

When I ran "django-admin.py makemessages -a" on my django app with
Japanese templates, all Japanese characters in the *.po files were
garbled.

In makemessages.py Line151:
http://code.djangoproject.com/browser/django/trunk/django/core/management/commands/makemessages.py?rev=10833#L151

  open(os.path.join(dirpath, thefile), "w").write(templatize(src))

I guess the function `templatize' must receive Unicode string if it
contains non Ascii characters, right?

The correct way in this case might go like this:
   open(os.path.join(dirpath, thefile), "w").write(templatize(unicode
(src, "UTF-8", "ignore")).encode("UTF-8"))
And it worked well for now.

I'm afraid if I'm missing something important, since I don't know all
about the i18n of django.


Regards.


Ayukawa

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to