Re: [Tutor] Python and unicode

2006-03-11 Thread Ferry Dave Jäckel
Hi Michael and Kent, thanks to your tips I was able to solve my problems! It was quite easy at last. For those interested and struggling with utf-8, ascii and unicode: After knowing the right way of - string.decode() upon input (if in question) - string.encode() upon output (more often th

Re: [Tutor] Python and unicode

2006-03-10 Thread Kent Johnson
Ferry Dave Jäckel wrote: > Hello list, > > I try hard to understand python and unicode support, but don't get it > really. > > What I thought about this until yesterday :) > If I write my script in unicode encoding and put the magic # -*- coding: > utf-8 -*- at its start, I can just use unicode

Re: [Tutor] Python and unicode

2006-03-10 Thread Michael Lange
On Fri, 10 Mar 2006 08:55:35 +0100 Ferry Dave Jäckel <[EMAIL PROTECTED]> wrote: > Hello list, > > I try hard to understand python and unicode support, but don't get it > really. > > What I thought about this until yesterday :) > If I write my script in unicode encoding and put the magic # -*- c

[Tutor] Python and unicode

2006-03-09 Thread Ferry Dave Jäckel
Hello list, I try hard to understand python and unicode support, but don't get it really. What I thought about this until yesterday :) If I write my script in unicode encoding and put the magic # -*- coding: utf-8 -*- at its start, I can just use unicode everywhere without problems. Reading str