24 Sep 13:48
Encoding Issue in Jython Console
From: Sébastien Boisgérault <Sebastien.Boisgerault <at> ensmp.fr>
Subject: Encoding Issue in Jython Console
Newsgroups: gmane.comp.lang.jython.devel
Date: 2008-09-24 11:50:48 GMT
Subject: Encoding Issue in Jython Console
Newsgroups: gmane.comp.lang.jython.devel
Date: 2008-09-24 11:50:48 GMT
Hi all,
Currently, in my Linux with a UTF-8 locale and terminal settings, the
Jython console (from the current trunk) defines improperly unicode strings.
$ ./bin/jython --verify
...
>>> u"é"
u'\xc3\xa9'
instead of the correct:
$ python
...
>>> u"é"
u'\xe9'
The 'cflags.encoding' option is AFAICT never set in Jython code and in
this case the input string is therefore assumed to be latin-1 in
ParserFacade.
Could the 'encoding' attribute default be set to the Java
'file.encoding' property in CompilerFlags instances (instead of null) ?
That would solve this specific problem ... would it create other issues ?
Cheers,
SB
-------------------------------------------------------------------------
(Continue reading)
RSS Feed