strange result with json-server & zop

Gabriel Genellina gagsl-py at yahoo.com.ar
Sat Sep 16 07:55:02 EDT 2006


At Saturday 16/9/2006 08:40, asterocean wrote:

>>But this is not UTF-8; looks like UTF-16 with 0x00 converted to 0x20
>>(space). I'd look at where the body comes from, or ask on the Zope
>>list for the right way to use dtml-mime.
>
>i've try with UTF-8 , error remains . when the script is called
>directly from http request , it went well. so this should not be the
>problem. the real problem is when it is called from a json-rpc, the
>error happened

Try to look at what you *get* as the body from xmlrpc, if it comes 
wrong, will go wrong to the email.

>>Anyway, why are you using dtml-mime and such? Using the email package
>>is easier and a lot more powerful.
>i'm using zope & jsonserver & maildrop to develop this part , so the
>main problem how to send mail with json-rpc structure.

You can use the email package from inside Zope; an external method will do.



Gabriel Genellina
Softlab SRL 


	
	
		
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas




More information about the Python-list mailing list