[Help]UnicodeDecodeError

Karl fatkwanyui at gmail.com
Sun Mar 18 09:20:26 EDT 2007


error msg:
Mod_python error: "PythonHandler mod_python.publisher"

Traceback (most recent call last):

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
299, in HandlerDispatch
    result = object(req)

  File "/usr/lib/python2.3/site-packages/mod_python/publisher.py",
line 136, in handler
    result = util.apply_fs_data(object, req.form, req=req)

  File "/usr/lib/python2.3/site-packages/mod_python/util.py", line
361, in apply_fs_data
    return object(**args)

  File "/var/www/html/sky.py", line 38, in main
    sresult = sresult.decode('zh-hk').encode('utf_8')

UnicodeDecodeError: 'big5hkscs' codec can't decode bytes in position
958-959: illegal multibyte sequence


Wt can I do, since there is some characters, is there any solutions to
solve it???

thx




More information about the Python-list mailing list