I am getting lots of errors like this below and found a solution in
http://mla.libertine.org/tmda-users/2004-05/msg00034.html

--- start here ---
diff -u -r1.6 -r1.7
--- Unicode.py  18 Feb 2004 15:10:48 -0000      1.6
+++ Unicode.py  4 May 2004 15:45:18 -0000       1.7
@@ -72,7 +72,7 @@
   CharSet = CS.input_charset


   # Find appropriate decoder
-  if CharSet in ("iso-8859-1", "us-ascii"):
+  if CharSet in ("iso-8859-1", "us-ascii", "us_ascii" ):
     Decoder = Iso8859
   else:
     try:
--- end here ---

but it doesn�t work for me...
sorry, I don�t know phyton
is there anything else I can try ?
thank you very much in advance !

error follows:

* * * * * * * *
 /var/www/cgi-bin/tmda-cgi/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 'Unicode.pyc'>, 
Unicode.TranslateToUTF8 = <function TranslateToUTF8>, CharSet = 'utf-7', decoded = 
('Bases: Padron-O/Soc-Telef-Tarjetas-Empresas-Mails-Autos etc.', None)


 /var/www/cgi-bin/tmda-cgi/Unicode.py in TranslateToUTF8(CharSet='utf-7', Str='Bases: 
Padron-O/Soc-Telef-Tarjetas-Empresas-Mails-Autos etc.', 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_7_decode>, Str = 'Bases: 
Padron-O/Soc-Telef-Tarjetas-Empresas-Mails-Autos etc.'


UnicodeError: UTF-7 decoding error: unexpected special character
      __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-7 decoding error: unexpected special character',)
* * * * * * * *


--
Yaron Zarfati
Administrador de Red y Correo
ORT Argentina
www.ort.edu.ar
--
Uso un sistema anti-spam por el cual Ud. tendra que confirmar el
primer mensaje que me envie, asi su direccion quedara habilitada
para los mensajes siguientes.



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

Reply via email to