string byte dump
Does anyone that knows python want to write me a byte dump for strings? :-)
I am trying to modify a plugin (that someone else wrote) that uses
interprocess communication.
It works on strings without special characters but it fails on other
stings like "Björk".
It calls decode('utf8') but I guess the strings are not utf8 so I need
to find out what is being input.
--
http://mail.python.org/mailman/listinfo/python-list
Re: string byte dump
Rob Wolfe wrote:
> Jammer <[EMAIL PROTECTED]> writes:
>
>> Does anyone that knows python want to write me a byte dump for strings? :-)
>>
>> I am trying to modify a plugin (that someone else wrote) that uses
>> interprocess communication.
>> It works on strings without special characters but it fails on other
>> stings like "Björk".
>>
>> It calls decode('utf8') but I guess the strings are not utf8 so I need
>> to find out what is being input.
>
> Try this:
>
>>>> "abc".encode("hex")
> '616263'
>
Awesome, thanks.
--
http://mail.python.org/mailman/listinfo/python-list
decode overwrite variable?
Will a failed decode overwrite the variable?
message = message.decode('iso-8859-1')
or do I need to do
msg = message.decode('iso-8859-1')
--
http://mail.python.org/mailman/listinfo/python-list
Re: Porn Addiction Solutions?
On Oct 10, 5:37 am, [EMAIL PROTECTED] wrote: > It's very simple. You need to know the world is much more than the > imaginery life you are looking. Spend some time in the feet of the > Lord Jesus who would help you to come out of this trouble. Does anyone else find it amusing that this poster assumes 'imaginary' and the Lord Jesus are polar opposites??? -- http://mail.python.org/mailman/listinfo/python-list
