Author's Bio: Anton Mamaenko

Sunday, October 17, 2010

How to work with different Unicode encodings

Python documentation contains an article, on use of various encodings in text files. What it really lacks - is an example of how to quickly integrate this knowledge into existing infrastructure.

In the following example we load an .xml file saved as UTF-16, then do some processing,
and save it as UTF-8 with BOM.



No comments:

Post a Comment

Search This Blog