[Fedora-trans-ar] Re: Arabic issue #24: QTextBrowser doesn't care about the page encoding.

Simon Hausmann simon.hausmann at trolltech.com
Mon Mar 7 06:20:19 UTC 2005


On Monday 07 March 2005 05:28, Munzir Taha wrote:
> System: Linux 2.6.10-1mdk i686 AMD Athlon(tm) 64 Processor 3200+ GNU/Linux
> Qt: 4.0.0-b2-snapshot-20050306
>
> CODE:
>
>     QTextBrowser *w = new QTextBrowser(0);
>     w->setSource(QDir::currentPath() + "/index.xml");
>
>
> The index.xml page looks like this:
>
> <?xml version="1.0" encoding="utf-8"?>

This syntax is currently not supported.

> <html>
>     <head>
>         <title>Qt Arabic Bugs</title>
>     </head>
>     <body>
>         مشاكل لغة الضاد مع مكتبات Qt
>     </body>
> </html>
>
> I also tried it with an html page with a header like this:
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=utf-8">

This one certainly works. Your example modified to the one below and called in 
assistant it displays correctly for me:

<html>
    <head>
        <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=utf-8">
        <title>Qt Arabic Bugs</title>
    </head>
    <body>
        مشاكل لغة الضاد مع مكتبات Qt
    </body>
</html>

What was the html page with the <meta> header you were trying that didn't 
work?

Simon




More information about the Fedora-trans-ar mailing list