You need to make sure your text coming into the spell checking routines is encoded in whatever encoding you've told the routines to check. If they are expecting UTF-8 and you get a Latin character outside of US ASCII, then there's already something wrong. Without some more idea of your code, data, and output I don't know what else to say.