Cp1251-symbols in SOAP request
Erik Max Francis
max at alcyone.com
Sat Dec 17 15:07:50 EST 2005
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 properly.
--
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Could it be / That we need loving to survive
-- Neneh Cherry
More information about the Python-list
mailing list