Convert them to another set of characters before passing the data to QDomDocument.