loading new unicode language encoders into lib/encodings

Discussion in 'Python' started by Posadas, Dennis, Dec 10, 2003.

  1. Hi,

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

    I ran something like this on the command line and this is what I
    got...
    >>> s = unicode('50e7', 'eucgb2312_cn')
    Traceback (most recent call last):
    File "(stdin)", line 1, in?
    Lookuperror: unknown encoding: eucgb2312_cn
    >>>

    Dennis
     
    Posadas, Dennis, Dec 10, 2003
    #1
    1. Advertising

  2. "Posadas, Dennis" <> writes:

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


    You need to quit and restart Python, as it performs negative caching.

    Regards,
    Martin
     
    Martin v. =?iso-8859-15?q?L=F6wis?=, Dec 10, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Laurent Therond

    Binary strings, unicode and encodings

    Laurent Therond, Jan 15, 2004, in forum: Python
    Replies:
    11
    Views:
    731
    Serge Orlov
    Jan 17, 2004
  2. Jason Diamond

    Detecteing Unicode encodings

    Jason Diamond, Aug 21, 2004, in forum: Python
    Replies:
    2
    Views:
    332
    Jason Diamond
    Aug 22, 2004
  3. Michael Ströder
    Replies:
    1
    Views:
    326
    Benjamin
    Jun 6, 2008
  4. Replies:
    1
    Views:
    400
  5. Iñaki Baz Castillo
    Replies:
    1
    Views:
    158
    Iñaki Baz Castillo
    Feb 28, 2011
Loading...

Share This Page