Re: Cp1251-symbols in SOAP request

2005-12-18 Thread Jarek Zgoda
Pelmen napisał(a): > but socket will raise an exception if it'll be in cp1251 I am not a socket programming expert, but I didn't notice anything strange when sending utf-8 or latin2 texts over sockets. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Cp1251-symbols in SOAP request

2005-12-17 Thread Pelmen
but socket will raise an exception if it'll be in cp1251 -- http://mail.python.org/mailman/listinfo/python-list

Re: Cp1251-symbols in SOAP request

2005-12-17 Thread Jarek Zgoda
Pelmen napisał(a): > as i understood, better way is base64 encoding on my side, and decoding > on server side? No, just encode the texts in what encoding the other side expects. If this should be CP1251, not decoding would be enough. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.

Re: Cp1251-symbols in SOAP request

2005-12-17 Thread Pelmen
thanks ... it seems to me best way will be b16encode, to prevent sax parser errors -- http://mail.python.org/mailman/listinfo/python-list

Re: Cp1251-symbols in SOAP request

2005-12-17 Thread Pelmen
as i understood, better way is base64 encoding on my side, and decoding on server side? -- http://mail.python.org/mailman/listinfo/python-list

Re: Cp1251-symbols in SOAP request

2005-12-17 Thread Erik Max Francis
Pelmen wrote: > what to do, to encode it properly? UTF-8? You're the one sending it through a socket; only you know what the other side expects. -- Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis Could it be /

Re: Cp1251-symbols in SOAP request

2005-12-17 Thread Pelmen
what to do, to encode it properly? UTF-8? -- http://mail.python.org/mailman/listinfo/python-list

Re: Cp1251-symbols in SOAP request

2005-12-17 Thread Erik Max Francis
Pelmen wrote: > UnicodeEncodeError: 'ascii' codec can't encode characters in position > 161-168: ordinal not in range(128) > > How can i force this problem. The problem is that you're trying to write a Unicode string to a socket. In order to do that properly, you have to encode it to a string