Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux Windows XP

2005-02-23 Thread Paul Boddie
Serge Orlov [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Paul Boddie wrote: Anyone who has needed to expose filesystems created by Linux distributions before the UTF-8 big push to later distributions can attest to the fact that the see no evil brass monkey is wearing a

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux Windows XP

2005-02-22 Thread Serge Orlov
Mike Dee wrote: [snip wrestling with byte strings] In addition to Martin reply I just want to add two notes: 1. Interactive console in python 2.3 has a bug that was fixed in 2.4, so you can't enter unicode strings at the prompt: C:\Python24python.exe a=u'' a u'\u0430\u0431\u0432'

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux Windows XP

2005-02-22 Thread Mariano Draghi
Hace mucho tiempo en una galaxia muy, muy lejana, Mike Dee escribió: A very very basic UTF-8 question that's driving me nuts: If I have this in the beginning of my Python script in Linux: #!/usr/bin/env python # -*- coding: UTF-8 -*- should I - or should I not - be able to use non-ASCII

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux Windows XP

2005-02-22 Thread Fuzzyman
Mike Dee wrote: A very very basic UTF-8 question that's driving me nuts: If I have this in the beginning of my Python script in Linux: #!/usr/bin/env python # -*- coding: UTF-8 -*- should I - or should I not - be able to use non-ASCII characters in strings and in Tk GUI button labels and

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux Windows XP

2005-02-22 Thread Max M
Fuzzyman wrote: Mike Dee wrote: #!/usr/bin/env python # -*- coding: UTF-8 -*- This will mean string literals in your source code will be encoded as UTF8 - if you handle them with normal string operations you might get funny results. It means that you don't have to explicitely set the encoding on

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux Windows XP

2005-02-22 Thread Duncan Booth
Max M wrote: And this string will automatically be utf-8 encoded: st = 'æøå' So you should be able to convert it to unicode without giving an encoding: ust = unicode(st) No. Strings have no knowledge of their encoding. As you describe the string will be utf-8 encoded, but you

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux Windows XP

2005-02-22 Thread Fuzzyman
Max M wrote: Fuzzyman wrote: Mike Dee wrote: #!/usr/bin/env python # -*- coding: UTF-8 -*- This will mean string literals in your source code will be encoded as UTF8 - if you handle them with normal string operations you might get funny results. It means that you don't have to

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux Windows XP

2005-02-22 Thread Paul Boddie
Mike Dee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... A very very basic UTF-8 question that's driving me nuts: If I have this in the beginning of my Python script in Linux: #!/usr/bin/env python # -*- coding: UTF-8 -*- should I - or should I not - be able to use

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux Windows XP

2005-02-22 Thread Serge Orlov
Paul Boddie wrote: One side-effect of the big push to UTF-8 amongst the Linux distribution vendors/maintainers is the evasion of issues such as filesystem encodings and real Unicode at the system level. In Python, when you have a Unicode object, you are dealing with idealised sequences of

UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux Windows XP

2005-02-21 Thread Mike Dee
A very very basic UTF-8 question that's driving me nuts: If I have this in the beginning of my Python script in Linux: #!/usr/bin/env python # -*- coding: UTF-8 -*- should I - or should I not - be able to use non-ASCII characters in strings and in Tk GUI button labels and GUI window titles

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux Windows XP

2005-02-21 Thread Martin v. Löwis
Mike Dee wrote: If I have this in the beginning of my Python script in Linux: #!/usr/bin/env python # -*- coding: UTF-8 -*- should I - or should I not - be able to use non-ASCII characters in strings and in Tk GUI button labels and GUI window titles and in raw_input data without Python returning

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux Windows XP

2005-02-21 Thread Do Re Mi chel La Si Do
Hi ! For test your system, please, read this url : http://sivanataraja.free.fr/config/test.htm (french) http://www.alanwood.net/unicode/ (english) And many explains : http://en.wikipedia.org/wiki/Unicode And, to reassure you: I had no problème for use unicode chars with Tk (my tests