Lino Website

code changes

About encodings

Monday, 20. February 2006 12:27.

How to support non-ascii characters on a console? The TIM-Tools on my customers' Windows machines should talk German or French, thus they need either latin1 or cp850 or cp437 encoding. I'd like this to work also when accessing a remote Linux machine from a Window machine .

Moved the rewriter() trickery (inspired by Marc-André Lemburg's Python Unicode Tutorial) from syscon.py to a new module lino.console.sitecustomize

And in the sitecustomize.py of my Windows machine I now import this module:

site.addsitedir(r"c:\drives\t\svnwork\lino\trunk\src")
from lino.console import sitecustomize

(Until now I replicated the code...)

(to be continued)

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