Joel of Joel on Software has put together a great overview of Unicode that all programmers should read. (This article has been up for a while, but I haven’t seen it linked anywhere.) As a person who in Real Life deals with a lot of languages, some of them quite dead, I fight problems with improper Unicode support in applications all the time. (Ironically, Windows is now a much better platform on which to do classics and semitic languages than OS X, though this is the fault of application developers–Microsoft included–and not Apple.)
In this article I’ll fill you in on exactly what every working programmer should know. All that stuff about “plain text = ascii = characters are 8 bits” is not only wrong, it’s hopelessly wrong, and if you’re still programming that way, you’re not much better than a medical doctor who doesn’t believe in germs. Please do not write another line of code until you finish reading this article.
Before I get started, I should warn you that if you are one of those rare people who knows about internationalization, you are going to find my entire discussion a little bit oversimplified. I’m really just trying to set a minimum bar here so that everyone can understand what’s going on and can write code that has a hope of working with text in any language other than the subset of English that doesn’t include words with accents. And I should warn you that character handling is only a tiny portion of what it takes to create software that works internationally, but I can only write about one thing at a time so today it’s character sets.
Maybe when I’m done reading this whole article I’ll understand why otherwise Unicode-savvy applications often have such problems supporting polytonic Greek.