Re: [Tutor] character encoding

2008-07-08 Thread wesley chun
> > Hi, I'm puzzled by the character encodings which I get when I use Python > > with IDLE. The string '\xf6' represents a letter in the Swedish alphabet > > when coded with utf8. On our computer with MacOSX this gets coded as > > '\xc3\xb6' which is a string of length 2. I have configured IDLE

Re: [Tutor] character encoding

2008-07-08 Thread Eric Abrahamsen
As for other resources, I recently came across this: http://farmdev.com/talks/unicode/ This was the first explanation that really made me understand the difference between Unicode and utf-8 (and realize that I'd been using the terms 'encode' and 'decode' backwards!). Anyway, just one more r

Re: [Tutor] character encoding

2008-07-08 Thread Kent Johnson
On Tue, Jul 8, 2008 at 5:19 PM, Robert Johansson <[EMAIL PROTECTED]> wrote: > Hi, I'm puzzled by the character encodings which I get when I use Python > with IDLE. The string '\xf6' represents a letter in the Swedish alphabet > when coded with utf8. On our computer with MacOSX this gets coded as >

[Tutor] character encoding

2008-07-08 Thread Robert Johansson
Hi, I'm puzzled by the character encodings which I get when I use Python with IDLE. The string '\xf6' represents a letter in the Swedish alphabet when coded with utf8. On our computer with MacOSX this gets coded as '\xc3\xb6' which is a string of length 2. I have configured IDLE to encode utf8 but