string byte dump

2007-01-28 Thread Jammer
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

2007-01-28 Thread Jammer
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?

2007-01-28 Thread Jammer
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?

2008-10-10 Thread Um Jammer NATTY
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