Thursday, 10. March 2005 7:33.
I started to translate some messages for sync.py, using i18n. I noticed that there was a problem with non-ascii chars, at least on my Windows box.Solved using a rewriter(), inspired by a snipped found in Marc-André Lemburg's Python Unicode Tutorial. Thank you, Marc-André!
I wrote diag.py to experiment with this, and to demonstrate the problem and why rewriter() is necessary. (Or am I missing some really pythonic solution for an obsolete problem?)
Refering articles:
- another article about non-ascii console (surf notes 18.03.05) — Python and Unicode explains with other words what I found on 10.03.2005 in Python Unicode Tutorial. But only the latter had the code snippet that helped me.