[Qt-interest] Add new alias to existing QTextCodec

KIMURA, Hidetaka kimura at jig.jp
Wed Feb 23 06:01:01 CET 2011


Hi all,

Charset detection of this page is failed with demo browser.
http://ranking.rakuten.co.jp/

The server sends Content-Type header with "x-euc-jp" but the content is
encoded with euc-jp. I thought that if i could add a new alias "x-euc-jp"
to an existing QTextCodec, charset detection will succeeds. Is there any
way to add a new alias?

i.e.
I would like to QTextCodec::codecForName("x-euc-jp") and
QTextCodec::codecForName("euc-jp") return same pointer.

Thanks.

-------
KIMURA, Hide - kimura at jig.jp




More information about the Qt-interest-old mailing list