PDA

View Full Version : Read XML shift-jis encoded with Dom problem



huyhoangfool
8th June 2012, 04:59
I created an application to convert data from old format to new one throught xml.
I packed my app into an excutable file and installed on some other PCs.
Everything is ok when xml files are encoded by utf8.

But when xml files are encoded by shift-jis there 's a problem with reading japanese text on some PCs that don't be installed Qt.

I have searched in the forum, on the internet but nothing helpful.

Any ideas regarded!
Thanks!


<?xml version='1.0' encoding='shift-jis' standalone='yes' ?>

PS: my OS is win 7

huyhoangfool
11th June 2012, 08:53
After many working days, i solved my problem!

Deployment-windows.html (http://doc.qt.nokia.com/4.7-snapshot/deployment-windows.html)

I added some plugins into my app and everything is ok!


qApp->addLibraryPath("C:/customPath/plugins");

"customPath/plugins" = "c:\Qt\4.7.3\plugins\codecs" on my PC.