using locales

2005-04-20 Thread garykpdx
Is there some sort of tutorial on locales or the locale module? I can't seem to find a list showing all possible locales. I made 'en' work alright, but when I tried 'de' or 'de_DE' or 'es_ES', etc. it said that those were not valid locaes. Worst of all, when I tried 'es' it said that this was est

unicode encoding problem

2005-04-28 Thread garykpdx
Every time I think I understand unicode, I prove I don't. I created a variable in interactive mode like this: s = u'รค' where this character is the a-umlaut that worked alright. Then I encoded it like this: s.encode( 'latin1') and it printed out a sigma (totally wrong) then I typed this: s.encod