Fabiano Xavier Nascimento wrote:
hi folks
How resolve this error *UnicodeError*: UTF-8 decoding error: invalid data
...
     /usr/local/src/tmda-cgi-0.12/Unicode.py
    <file:///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]>'

I think this is caused by an incorrectly formatted email (although it sounds like TMDA/TMDA-CGI's error handling needs improvement for this). Do you still have the email in question, and can you post the entire thing here (or at least the headers) as an attachment, so it doesn't get corrupted.
_____________________________________________
tmda-users mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-users
  • Fw: ERRO TMDA Fabiano Xavier Nascimento
    • Re: Fw: ERRO TMDA Stephen Warren

Reply via email to