Ian Bicking: the old part of his blog

Re: Do I hate Unicode, or Do I Hate ASCII?

As ukrainian developer, I have to deal with Unicode issues regularly.

The only viable strategy to avoid unicode errors for me has been to have clear borders of "Unicode world" within a program. As you noted, this may be tricky but it is doable. Usually I don't strive to have Unicode throughout the program because Unicode is used inconsistently in Python (and, yes, you're going to figure it out the hard way) but it is relatively simple to define a Unicode area within your own code. To document boundaries I usually use asserts.

Regards, Max.

Comment on Do I hate Unicode, or Do I Hate ASCII?
by Max Ischenko