On Wednesday 2012-08-29 09:31 (-0700), Philip Jenvey
<pjenvey@...> wrote:
> On Aug 29, 2012, at 2:37 AM, r houtman wrote:
>
>> Hi,
>>
>> I'm using Jython 2.5.1. (but also tried 2.5.3) and i get the message
>> " unknown enocoding 'ms932'"
>>
>> When i force the JVM to utf-8, then using directory paths containing Japanese characters doesnt' work.
>>
>> I put a question out on stackOverflow:
>> http://stackoverflow.com/questions/12158747/jython-unknown-enocoding-ms932-on-japanese-system
>>
>> Can you guys can tell me how i can get jython to work on a japanese system?
> Jython currently lacks support for many asian encodings. The feature is tracked here:
>
> http://bugs.jython.org/issue1066
The ideal would be for the patch to http://bugs.jython.org/issue1066 to
be complete. If you need this know there are some options available to
you, some assembly required.....
I have a post at
http://old.nabble.com/Re:-Jython-2.5.1-and-various-encodings-support---LookupError:-unknown-encoding-p27725068.html
(I've no idea why I can't find this post on the sf.net list, the page at
http://sourceforge.net/mailarchive/forum.php?thread_name=4B886D0B.30509%40ingres.com&forum_name=jython-users
has a comment at the bottom about excluded messages) that has a horrible
demo on how to use nio with a Python encodings (lite) interface.
You could in theory use gencodec.py (
http://svn.python.org/projects/python/trunk/Tools/unicode/gencodec.py )
with in input Unicode table (which you could generate using CPython) but
this would be inefficient. I actually did this once for CPython (not
Jython) for an unsupported single byte Windows (cp708) codepage, it is
pretty straight forward.
Chris
|