You should upgrade to 0.13 and apply the patches for 0.13 that are in the archives of this mailing list.

I do think you need at least 0.13 and change the following in Unicode.py from this...
# Find appropriate decoder
if CharSet in ("iso-8859-1", "us-ascii"):


to this
 # Find appropriate decoder
 if CharSet in ("iso-8859-1", "us-ascii", "us_ascii" ):

I think this should be around line 74.

Also, I would try to get the email message in pending that is causeing the trouble and post it to the list...

Hope it helps...

Sam

Ronald Wiplinger wrote:

What am I supposed to do now?


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/local/tmda-cgi-0.12/tmda-cgi.py <file:///usr/local/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 '/usr/local/tmda-cgi-0.12/PendList.pyc'>


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


/usr/local/tmda-cgi-0.12/PendList.py <file:///usr/local/tmda-cgi-0.12/PendList.py> in *Show*()
410 value += Unicode.TranslateToUTF8(CharSet, decoded[0], "ignore")
411 else:
412 value += Unicode.TranslateToUTF8(CharSet, decoded[0], "ignore")
413 Subject = value
414 if len(Subject) > int(PVars[("PendingList", "CropSubject")]):
*value* = '', /global/ *Unicode* = <module 'Unicode' from '/usr/local/tmda-cgi-0.12/Unicode.pyc'>, Unicode.*TranslateToUTF8* = <function TranslateToUTF8>, *CharSet* = 'utf-8', *decoded* = ('\xa6\xa9\xb7\xc7\xae\xc9\xbe\xf7\xaa\xba\xb8`\xab\xb5', None)


/usr/local/tmda-cgi-0.12/Unicode.py <file:///usr/local/tmda-cgi-0.12/Unicode.py> in *TranslateToUTF8*(CharSet='utf-8', Str='\xa6\xa9\xb7\xc7\xae\xc9\xbe\xf7\xaa\xba\xb8`\xab\xb5', 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* = '\xa6\xa9\xb7\xc7\xae\xc9\xbe\xf7\xaa\xba\xb8`\xab\xb5'


*UnicodeDecodeError*: 'utf8' codec can't decode byte 0xa6 in position 0: unexpected code byte
args = ('utf8', '\xa6\xa9\xb7\xc7\xae\xc9\xbe\xf7\xaa\xba\xb8`\xab\xb5', 0, 1, 'unexpected code byte')
encoding = 'utf8'
end = 1
object = '\xa6\xa9\xb7\xc7\xae\xc9\xbe\xf7\xaa\xba\xb8`\xab\xb5'
reason = 'unexpected code byte'
start = 0




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

Reply via email to