[Pythonmac-SIG] Accented characters

Quarante-Deux xlii at xlii.org
Sat Jul 10 23:22:51 CEST 2004


I'm new to python and I need to process some text written in French 
with various accented characters.

I have read about the locale module and codecs and anything else I 
could find to no avail.

In IDLE I can't even type an accented character.

In Terminal, I must activite "escape non ASCII characters" in the 
Emulation setting.

If I write a script that writes a file to disk I never get anything 
good either.

I have tried various combinations of locale.setlocale, and also 
various combinations of unicode and locale settings for the re 
module. Nothing works.

I need:
1/ to be able to sort correctly
2/ to be able to have regular expressions recognize word boundaries correctly.

I'm using Mac OSX with the preinstalled Python 2.3.3. I either use 
IDLE or BBEdit and the Terminal.

Thanks for any help.

Ellen
-- 
-------------------------------------------------------------------
xlii at xlii.org                          |  Ellen C. Herzfeld
http://www.quarante-deux.org/          |  Dominique O. Martel
Quelques pages sur la Science-Fiction  |  Quarante-Deux
-------------------------------------------------------------------


More information about the Pythonmac-SIG mailing list