Hello.
During program writing I met problem with QTextCodec.
I want to decode text from Shift-JIS.

I've got two computers, at first I've got linux and Win 7 x64, at second Win XP.
On linux and Win 7 with installed Qt4 (4.7.0) decoding is successful, but on Win XP (Qt4 is not installed) not.
When I creating QTextCodec 0 is returned and I can't decode text.
On XP I've got installed east-asian languages support.
How can I get QTextCodec working?
Thanks in advance.

Some piece of my code:
Qt Code:
  1. QTextCodec *codec = QTextCodec::codecForName("Shift-JIS");
  2. if(codec == 0)
  3. {
  4. qDebug() << tr("There're no Shift-JIS codec");
  5. return;
  6. }
  7. QByteArray tTemp;
  8. // There're writing to tTemp in loop
  9.  
  10. QString temp = codec->toUnicode(tTemp);
To copy to clipboard, switch view to plain text mode