To unicode or not to unicode
Ron Garret
rNOSPAMon at flownet.com
Thu Feb 19 21:57:13 EST 2009
I'm writing a little wiki that I call µWiki. That's a lowercase Greek
mu at the beginning (it's pronounced micro-wiki). It's working, except
that I can't actually enter the name of the wiki into the wiki itself
because the default unicode encoding on my Python installation is
"ascii". So I'm trying to decide on a course of action. There seem to
be three possibilities:
1. Change the code to properly support unicode. Preliminary
investigations indicate that this is going to be a colossal pain in the
ass.
2. Change the default encoding on my Python installation to be latin-1
or UTF8. The disadvantage to this is that no one else will be able to
run my code without making the same change to their installation, since
you can't change default encodings once Python has started.
3. Punt and spell it 'uwiki' instead.
I'm feeling indecisive so I thought I'd ask other people's opinion.
What should I do?
rg
More information about the Python-list
mailing list