Results 1 to 11 of 11

Thread: Polish chars in the HTML generated by Qt.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2010
    Location
    Poland
    Posts
    19
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Polish chars in the HTML generated by Qt.

    Hi. Look at my code. I have a very big problem, namely the encoding of the HTML file. So, polish chars in QMessageBox works correctly, but in text of the "out" no so good.
    Qt Code:
    1. QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
    2. QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
    3. QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
    To copy to clipboard, switch view to plain text mode 
    Example:
    Qt Code:
    1. out << "<h2>INFORMACJA O GOTOWOŚCI DZIECKA<br />DO PODJĘCIA NAUKI W SZKOLE PODSTAWOWEJ</h2>\n";
    To copy to clipboard, switch view to plain text mode 
    looks:
    INFORMACJA O GOTOWOÂŒCI DZIECKA
    DO PODJÊCIA NAUKI W SZKOLE PODSTAWOWEJ
    Ê =/= Ę

    I coded the files in UTF-8 with BOM. Polish characters, which are get from the checboxe's label works correctly.
    Last edited by Alan_K; 20th March 2011 at 17:20. Reason: Hide source code; all works correctly

Similar Threads

  1. Replacing polish diacritics in the string
    By kornicameister in forum Qt Programming
    Replies: 3
    Last Post: 8th February 2011, 15:54
  2. Qt for S60, problem with bold polish characters
    By Wiktor in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 26th August 2009, 09:37
  3. Accessing generated pixmaps in html / Custom tooltips
    By Pieter from Belgium in forum Qt Programming
    Replies: 9
    Last Post: 1st August 2009, 15:24
  4. QDevelop needs Dutch and Polish translators
    By jlbrd in forum Qt-based Software
    Replies: 0
    Last Post: 4th December 2007, 17:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.