Re: [Tutor] unicode mapping doesn't work

2009-11-27 Thread spir
Lie Ryan wrote: > > funnychars = u"éèêëóòôöáàâäÉÈÊËÓÒÔÖÁÀÂÄ" > > asciichars = "" > > In addition to Lie's reply, you will very probably need diacritic-free chars to be unicode, too. Otherwise prepare for later UnocideEn/De-codeError-s. As a rule of thumb, if you work wi

Re: [Tutor] unicode mapping doesn't work

2009-11-27 Thread Lie Ryan
On 11/27/2009 12:06 PM, Alan Gauld wrote: Huh?! Was this to the right place? It doesn't seem to be related to the previous posts in the thread? Confused Alan G. whoops.. wrong thread... ___ Tutor maillist - Tutor@python.org To unsubscribe o

Re: [Tutor] unicode mapping doesn't work

2009-11-26 Thread Alan Gauld
Huh?! Was this to the right place? It doesn't seem to be related to the previous posts in the thread? Confused Alan G. "Lie Ryan" wrote in message news:hen7am$4r...@ger.gmane.org... On 11/27/2009 10:43 AM, The Music Guy wrote: > Next thing is, I can't see logically how the path of the di

Re: [Tutor] unicode mapping doesn't work

2009-11-26 Thread Lie Ryan
On 11/27/2009 10:43 AM, The Music Guy wrote: > Next thing is, I can't see logically how the path of the discussion of > the proposal lead to the proposal being rejected. It looked like a lot > of people really liked the idea--including Guido himself--and several > examples were given about how it

Re: [Tutor] unicode mapping doesn't work

2009-11-26 Thread Albert-Jan Roskam
he face of ambiguity, refuse the temptation to guess. ~~ --- On Thu, 11/26/09, Lie Ryan wrote: From: Lie Ryan Subject: Re: [Tutor] unicode mapping doesn't work To: tutor@python.org Date: Thursday, November 26, 2009, 5:33 PM Al

Re: [Tutor] unicode mapping doesn't work

2009-11-26 Thread Lie Ryan
Albert-Jan Roskam wrote: Hi, I want to substitute some letters with accents with theire non-accented equivalents. It should be easy, but it doesn't work. What am I doing wrong? trans = {} funnychars = u"éèêëóòôöáàâäÉÈÊËÓÒÔÖÁÀÂÄ" asciichars = "" for f, a in zip(funnycha

[Tutor] unicode mapping doesn't work

2009-11-26 Thread Albert-Jan Roskam
Hi, I want to substitute some letters with accents with theire non-accented equivalents. It should be easy, but it doesn't work. What am I doing wrong? trans = {} funnychars = u"éèêëóòôöáàâäÉÈÊËÓÒÔÖÁÀÂÄ" asciichars = "" for f, a in zip(funnychars, asciichars):     trans.u