TMDA Unicode error

Andrew Mitchell <[email protected]>
Newsgroups gmane.mail.spam.tmda.user
Message-ID <[email protected]>
Hi everybody,

I have a qustion for the masses. ;)

I have 2 users out of 40+ that see errors like below almost daily,

Can anybody offer advise? I need to solve this.

Thanks,

Andrew

 
 
**UnicodeError**

	

Python 2.4.3: /usr/bin/python
Mon Aug 13 12:03:29 2007

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

 /usr/lib/python2.4/site-packages/tmda-cgi/tmda-cgi.py 
<file:///%5C%5Cusr%5Clib%5Cpython2.4%5Csite-packages%5Ctmda-cgi%5Ctmda-cgi.py> 


  188   elif Cmd == "pending":

  189     import PendList

  190     Call(PendList)

  191   elif Cmd == "restore":

  192     pass

**Call** = <function Call>, **PendList** = <module 'PendList' from 
'/usr/lib/python2.4/site-packages/tmda-cgi/PendList.pyc'>

 

 /usr/lib/python2.4/site-packages/tmda-cgi/tmda-cgi.py 
<file:///%5C%5Cusr%5Clib%5Cpython2.4%5Csite-packages%5Ctmda-cgi%5Ctmda-cgi.py> 
in **Call**(Library=<module 'PendList' from 
'/usr/lib/python2.4/site-packages/tmda-cgi/PendList.pyc'>, Str=None)

   86     Library.Show(Str)

   87   else:

   88     Library.Show()

   89 

   90 # Capture WebUID

**Library** = <module 'PendList' from 
'/usr/lib/python2.4/site-packages/tmda-cgi/PendList.pyc'>, 
Library.**Show** = <function Show>

 

 /usr/lib/python2.4/site-packages/tmda-cgi/PendList.py 
<file:///%5C%5Cusr%5Clib%5Cpython2.4%5Csite-packages%5Ctmda-cgi%5CPendList.py> 
in **Show**()

  530                 value += Unicode.TranslateToUTF8(CharSet, decoded[0], "ignore")

  531             else:

  532               value += Unicode.TranslateToUTF8(CharSet, decoded[0], "ignore")

  533         except email.errors.HeaderParseError:

  534           # just return the undecoded string if we can't decode it

**value** = '', //global// **Unicode** = <module 'Unicode' from 
'/usr/lib/python2.4/site-packages/tmda-cgi/Unicode.pyc'>, 
Unicode.**TranslateToUTF8** = <function TranslateToUTF8>, **CharSet** = 
'shift_jis', **decoded** = ('"\xe4\xe3\xa0\xa2" 
<[email protected]>', None)

 

 /usr/lib/python2.4/site-packages/tmda-cgi/Unicode.py 
<file:///%5C%5Cusr%5Clib%5Cpython2.4%5Csite-packages%5Ctmda-cgi%5CUnicode.py> 
in **TranslateToUTF8**(CharSet=u'shift_jis', Str='"\xe4\xe3\xa0\xa2" 
<[email protected]>', Errors='ignore')

  113     Uni = Decoder(Str, errors = Errors)[0]

  114   except:

  115     Uni = Decoder(Str)[0]

  116 

  117   # Encode for UTF-8

Uni //undefined//, **Decoder** = <built-in function shift_jis_decode>, 
**Str** = '"\xe4\xe3\xa0\xa2" <[email protected]>'

**UnicodeError**: Shift_JIS decoding error: invalid character 0xa0a2
      args = ('Shift_JIS decoding error: invalid character 0xa0a2',)

 


-- 
This message has been scanned for viruses and
dangerous content by *MailScanner* <http://www.mailscanner.info/>.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.