Search code examples
pythonunicodeutf-8jythonpython-unicode

Jython 'unknown enocoding ms932' on japanese system


i've written a program in Jython 2.5.1 which works fine on my Windows 7 machine, but on a japanese machine it throws an Exception saying "unknown encoding 'ms932'"

i found that codecs.java is the only module printing the unknown encoding 'xyz' message

this file loads aliases.py which does contain

# cp932 codec
'932'                : 'cp932',
'ms932'              : 'cp932',
'mskanji'            : 'cp932',
'ms_kanji'           : 'cp932',

The file cp932.py contains

 import _codecs_jp, codecs

But.. _codecs_jp does not exist as is also discussed in this page Does anyone have a clue where to go from here ?

http://web.archiveorange.com/archive/v/8tc1Zc2rV3qiUcy9zPlA


Solution

  • It is Jython Bugs issue #1066:

    http://bugs.jython.org/issue1066