[Qt-interest] qdoc encoding problem

Constantin Makshin cmakshin at gmail.com
Tue Jul 27 20:07:46 CEST 2010


According to the source code of the "qdoc" utility, HTML charset/encoding is set by the "outputencoding" configuration parameter.

http://qt.gitorious.org/qt/qt/blobs/4.7/tools/qdoc3/htmlgenerator.cpp#line293
http://qt.gitorious.org/qt/qt/blobs/4.7/tools/qdoc3/config.h#line148

On Tuesday 27 July 2010 16:08:44 程梁 wrote:
> Hi! I'm trying to translate Qt documents into Chinese. I found qdoc source
> files in
> %QT_PATH%/qt/doc/src and used qt.qdocconf file that is in
> %QT_PATH%/qt/tools/qdoc3/test.
> 
> When I have finished one page and tried to compile them into html the page
> encoding is ISO-8859-1
> so all Chinese characters are garbled although my qdoc translated is UTF-8.
> So could you tell me
> how to change the html charset generated by qdoc?
> 
> Thank you!



More information about the Qt-interest-old mailing list