loading new unicode language encoders into lib/encodings

Skip Montanaro skip at pobox.com
Wed Dec 10 17:28:59 CET 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...


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


or its tiny equivalent:



More information about the Python-list mailing list