hi folks
 
How resolve this error UnicodeError: UTF-8 decoding error: invalid data
UnicodeError Python 2.2.2: /usr/bin/python2.2
Mon Oct 3 09:02:21 2005

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /opt/tmda-files/tmda-cgi-0.12/tmda-cgi.py
  175   elif Cmd == "pending":
  176     import PendList
  177     Call(PendList)
  178   elif Cmd == "restore":
  179     pass
Call = <function Call>, PendList = <module 'PendList' from 'PendList.pyc'>

 /opt/tmda-files/tmda-cgi-0.12/tmda-cgi.py in Call(Library=<module 'PendList' from 'PendList.pyc'>, Str=None)
   73     Library.Show(Str)
   74   else:
   75     Library.Show()
   76 
   77 # Capture WebUID
Library = <module 'PendList' from 'PendList.pyc'>, Library.Show = <function Show>

 /usr/local/src/tmda-cgi-0.12/PendList.py in Show()
  433               value += Unicode.TranslateToUTF8(CharSet, decoded[0], "ignore")
  434           else:
  435             value += Unicode.TranslateToUTF8(CharSet, decoded[0], "ignore")
  436         From = value
  437         Temp = Address.search(From)
value = '', global Unicode = <module 'Unicode' from 'Unicode.pyc'>, Unicode.TranslateToUTF8 = <function TranslateToUTF8>, CharSet = 'utf-8', decoded = ('"Nat\xe1lia Sofia" <[EMAIL PROTECTED]>', None)

 /usr/local/src/tmda-cgi-0.12/Unicode.py in TranslateToUTF8(CharSet='utf-8', Str='"Nat\xe1lia Sofia" <[EMAIL PROTECTED]>', Errors='ignore')
  113     Uni = Decoder(Str, errors = Errors)[0]
  114   except TypeError:
  115     Uni = Decoder(Str)[0]
  116 
  117   # Encode for UTF-8
Uni undefined, Decoder = <built-in function utf_8_decode>, Str = '"Nat\xe1lia Sofia" <[EMAIL PROTECTED]>'

UnicodeError: UTF-8 decoding error: invalid data
      __doc__ = 'Unicode related error.'
      __getitem__ = <bound method UnicodeError.__getitem__ of <exceptions.UnicodeError instance>>
      __init__ = <bound method UnicodeError.__init__ of <exceptions.UnicodeError instance>>
      __module__ = 'exceptions'
      __str__ = <bound method UnicodeError.__str__ of <exceptions.UnicodeError instance>>
      args = ('UTF-8 decoding error: invalid data',)

_____________________________________________
tmda-users mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to