#9212: German Umlauts and possible other foreign languages special characters -------------------------------------------+-------------------------------- Reporter: nekron | Owner: nobody Status: new | Milestone: post-1.0 Component: Internationalization | Version: SVN Resolution: | Keywords: Umlauts Stage: Accepted | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------------+-------------------------------- Comment (by kmtracey):
OK, I can take a look at fixing it by figuring out the xgettext version and undoing the mangling for xgettexts older than 0.15 (maybe I should verify that's specifically when it was fixed also). Only I think the encoding names need to be reversed there -- what you show is essentially what xgettext is doing and we need to reverse that: {{{ >>> u = u'\xdf' >>> print u ß >>> e1 = u.encode('utf-8') >>> e1 '\xc3\x9f' >>> e2 = e1.decode('iso-8859-1').encode('utf-8') >>> e2 '\xc3\x83\xc2\x9f' >>> e3 = e2.decode('utf-8').encode('iso-8859-1') >>> e3 '\xc3\x9f' }}} e1 is the bytes in the source .py file, e2 is what the older xgettext outputs, e3 is what we want instead (same as e1). -- Ticket URL: <http://code.djangoproject.com/ticket/9212#comment:6> 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 django-updates@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---