Lino Website

code changes

frozen console applications with non-ascii chars

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:

Copyright 2001-2007 Luc Saffre.
http://lino.saffre-rumma.ee
Generated 2007-06-07 16:22:22