loading new unicode language encoders into lib/encodings

Skip Montanaro skip at pobox.com
Wed Dec 10 11:28:59 EST 2003


    Dennis> Once you load the necessary language encoder into lib/encodings,
    Dennis> is that all there is to using it ? I loaded the encoder
    Dennis> eucgb2312_cn.py and pyc into lib/encodings but am still getting
    Dennis> the error below...

Dennis,

I think you need to register it.  Check the docs for the codecs module,
especially the register() function.  Here's an example from Martin:

    http://groups.google.com/groups?q=python+codecs+register&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=j4r8n5fxfx.fsf%40informatik.hu-berlin.de&rnum=4

or its tiny equivalent:

    http://tinyurl.com/ylyt

Skip





More information about the Python-list mailing list