Don't see a way to leave comments on your blog posts. You should look at some more sophisticated encoding detection libraries like chardet. And don't rely on Qt for anything except drawing the GUI. I learned that the hard way
Fortunately since calibre is written in python, it was easy to find replacements.