[Qt-interest] QWebKit does not display chinese charcters from chinese web site

John McClurkin jwm at nei.nih.gov
Thu Jul 23 21:32:48 CEST 2009


Sorin Lazarescu wrote:
> Hi everybody
> 
>  
> 
> I use a small QT sample that uses QWebKit to render HTML pages. The 
> small sample written in Qt is below:
> 
>  
> 
> QWidget *win = new QWidget();
> 
> QVBoxLayout *lay = new QVBoxLayout();
> 
> QWebView *web = new QWebView();
> 
> web->load(QUrl("http://chinese.aol.com"));
> 
> lay->addWidget(web);
> 
> win->setLayout(lay);
> 
> win->show();
> 
>  
> 
> I have no problem to display any English Web site but when I am going to 
> http://chinese.aol.com all Chinese characters from the site are 
> presented as empty boxes or nothing. Arora that is based on WebKit 
> module has also the same problem when loading chinese site!
> 
>  
> 
> Is any way I could use WebKit and display the chinese HTML pages as IE 
> is doing?

You need to have Chinese fonts in directory searched by QWebKit. I don't 
know where IE looks for fonts.

> 
>  
> 
> Thanks
> 
>  
> 
> Sorin
> 
>  
> 



More information about the Qt-interest-old mailing list