Results 1 to 6 of 6

Thread: convert ampersand encoded HTML into something readable

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2010
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default convert ampersand encoded HTML into something readable

    I'm extracting strings from a webpage, but they are full of national characters encoded in html ampersand - hash - ascii code digits - semicolon format, looking something like this:

    "sekretær i kø"

    This is awful, and I can't find any information on how to decode these special characters, to the point where I'm close to writing a parser just for the purpose. The web page is encoded in utf-8 format, and the browser has no problem displaying it but in Qt all I get is mangled text strings...

    Does anyone know how to read html encoded characters right?
    Last edited by Lykurg; 17th October 2010 at 10:29.

Similar Threads

  1. How to convert text to HTML in QTextEdit
    By Roszko in forum Newbie
    Replies: 5
    Last Post: 31st December 2009, 09:40
  2. Convert html links in widget actions
    By jiveaxe in forum Qt Programming
    Replies: 4
    Last Post: 16th November 2009, 12:17
  3. Readable Xml with QXmlStreamWriter
    By jano_alex_es in forum Newbie
    Replies: 8
    Last Post: 26th August 2009, 11:53
  4. ampersand showing in QLabel
    By dave in forum Newbie
    Replies: 6
    Last Post: 7th November 2006, 06:15

Tags for this Thread

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.