I18n issue with optik
thorsten at thorstenkampe.de
Mon Apr 2 17:05:25 CEST 2007
* Steven Bethard (Sun, 01 Apr 2007 10:21:40 -0600)
> Thorsten Kampe wrote:
> I'm not very experienced with internationalization, but if you change::
> gettext.install('test', unicode=True)
> what happens?
Actually, this is the solution.
But there's one more problem: the solution only works when the
Terminal encoding is not US-ASCII. Unfortunately (almost) all
terminals I tried are set to US-ASCII (rxvt under Cygwin, Console
running bash, Poderosa running bash). Only the Windows Console is
CP852 and this works.
I got the tip to set a different encoding by
sys.stdout = codecs.EncodedFile(sys.stdout, 'utf-8')
but unfortunately this does not change the encoding of any Terminal.
So my question is: how can I set a different encoding to sys.stdout
(or why can I set it without any error but nothing changes?)
More information about the Python-list