Nominate our 2022 Qt Champions!

QWebView Page Loading Issue in Release Mode with Windows

  • Hello All,

    I am facing very strange problem with QWebView, In my application I need to get web page source which have Japanese Characters.

    Here is my code

    void MainWindow::on_btnGetSource_clicked()
    QString url=QString::fromUtf8("外付けハードディスク-Regza-HD-LB2-0TU2-フラストレーションフリーパッケージ/dp/B0052VIGXA/ref=sr_1_1?s=electronics&ie=UTF8&qid=1366439116&sr=1-1");



    void MainWindow::on_wvProductpage_loadFinished(bool arg1)
    QString htmlString=ui->wvProductpage->page()->currentFrame()->toHtml();



    This above code working in Debug Mode with Windows OS as well as in Debug and Release mode with MAC OS.

    But it is not working in Release mode with Windows OS. In Release with Windows webpage not loading with proper Japanes Characters.

    For example I am getting like followes.

    BUFFALO ŠO•t‚¯ƒn[ƒhƒfƒBƒXƒN PC/‰Æ“d‘Ήž (Regza[ƒŒƒOƒU]/Aquos[ƒAƒNƒIƒX]) 2TB HD-LB2.0TU2/N [ƒtƒ‰ƒXƒgƒŒ[ƒVƒ‡ƒ“ƒtƒŠ[ƒpƒbƒP[ƒW(FFP)]

    Instead of

    BUFFALO 外付けハードディスク PC/家電対応 (Regza[レグザ]/Aquos[アクオス]) 2TB HD-LB2.0TU2/N [フラストレーションフリーパッケージ(FFP)]

    on my webview and also in string.

    Please help me to solve this issue. I need to get proper page source in release mode.
    I am using QT4.8.1 and MinGW compiler.


Log in to reply