Hi!

Often in the last weeks I got mails with 'invalid data' in the subject.
This happens if the subject is with german special charkters (� - oe, � - ae, � 
- ue or � for example)

Below is the output of tmda-cgi. 
The only chance to get the mail throug is, that I open the file under pending 
and edit subject line.
For one or two mails this is an opinion, but now I have to do this very often...

Is there any idea to solve this problem?

thanks in advice,
Andreas


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

/usr/src/tmda-cgi-0.13/tmda-cgi.py <file:///usr/src/tmda-cgi-0.13/tmda-cgi.py> 
in Call(Library=<module 'PendList' from '/usr/src/tmda-cgi-0.13/PendList.pyc'>, 
Str=None)        
86 Library.Show(Str)    
87 else:        
88 Library.Show()       
89      
90 # Capture WebUID     
Library = <module 'PendList' from '/usr/src/tmda-cgi-0.13/PendList.pyc'>, 
Library.Show = <function Show>        

/usr/src/tmda-cgi-0.13/PendList.py <file:///usr/src/tmda-cgi-0.13/PendList.py> 
in Show()        
475 value += Unicode.TranslateToUTF8(CharSet, decoded[0], "ignore")     
476 else:       
477 value += Unicode.TranslateToUTF8(CharSet, decoded[0], "ignore")     
478 Subject = value     
479 if len(Subject) > int(PVars[("PendingList", "CropSubject")]):       
value = '', global Unicode = <module 'Unicode' from 
'/usr/src/tmda-cgi-0.13/Unicode.pyc'>, Unicode.TranslateToUTF8 = <function 
TranslateToUTF8>, CharSet = 'utf8', decoded = ('Mazda Bank H\xe4ndlerumfrage 
2005', None)        

/usr/src/tmda-cgi-0.13/Unicode.py <file:///usr/src/tmda-cgi-0.13/Unicode.py> in 
TranslateToUTF8(CharSet='utf8', Str='Mazda Bank H\xe4ndlerumfrage 2005', 
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 utf_8_decode>, Str = 'Mazda Bank 
H\xe4ndlerumfrage 2005'    
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 12-14: invalid 
data 
args = ('utf8', 'Mazda Bank H\xe4ndlerumfrage 2005', 12, 15, 'invalid data') 
encoding = 'utf8' 
end = 15 
object = 'Mazda Bank H\xe4ndlerumfrage 2005' 
reason = 'invalid data' 
start = 12 

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

Reply via email to