#6 UTF-8 labels not rendering properly

open
nobody
Renderer (3)
5
2010-08-22
2010-08-22
Anonymous
No

UTF-8 ecoded Arabic label are not rendered properly, fields are fine though.
Platform: Win32 XP SP3(MinGW) QT 4.6.3.0

Discussion

  • Gil

    Gil - 2010-09-21

    Could you please attach some sample output and a description of how that output differs from what you expect to see?

     
  • Mohanad Ali

    Mohanad Ali - 2010-10-07

    It renders "????????"
    All characters are rendered as a question marks even though I'm sure the report file is utf8 encoded.

    I think the problem has to do with parsing the report file.

    Thanks

     
  • Patr1ot

    Patr1ot - 2010-10-11

    I had this a problem.
    Put this source in documentscene constructor in wrtembed project.
    It worked for me.

    QTextCodec *codec = QTextCodec::codecForName("UTF-8");
    QTextCodec::setCodecForCStrings(codec);
    QTextCodec::setCodecForLocale(codec);
    QTextCodec::setCodecForTr(codec);

     
  • Gil

    Gil - 2010-10-19

    Sample report def with arabic label

     
  • Gil

    Gil - 2010-10-19

    portion of sample output on mac

     
  • Gil

    Gil - 2010-10-19

    portion of sample output on windows (vista)

     
  • Gil

    Gil - 2010-10-19

    I tried the attached arabicLabel.xml report definition on Windows Vista, Linux, and Mac, with no problems. The label text is just the digits 0, 1, 2, and 3, separated by spaces. Print Preview from within the OpenRPT app on Mac and Linux and from within xTuple ERP with embedded OpenRPT on WIndows all seemed to work fine. Print to a .xps on Windows and to the Mac's Preview application also seemed OK (see the attached .png files, which are partial screenshots). This is with the trunk OpenRPT code (essentially tags/R3_1_3DEV2).

    What's different about what you're trying?

    Gil

    Qt 4.6.0 on Mac
    Qt 4.6.1 on Linux
    Qt 4.6.3 on Windows