[BangPypers] Internationalization in Python 2.6

Vivek Puri vpuri.social at gmail.com
Wed Nov 27 13:27:26 CET 2013


Hi,

> How the internationalization works in Python 2.6.

Internationalization is different topic. Here you are dealing with
character encoding.


You are actually on right track except this line:

>      write_to_xml(input_string_unicode, encoding)

change it to

       write_to_xml(input_string_unicode, 'utf-8')

Basically once you have already converted the string to unicode
you should just write the output as unicode and utf8 is generally
more acceptable encoding.

rgds
vivek




More information about the BangPypers mailing list