Results 1 to 5 of 5

Thread: Convert Unicode data to Actual data

  1. #1
    Join Date
    Apr 2011
    Location
    Hyderabad
    Posts
    86
    Thanks
    17
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Convert Unicode data to Actual data

    Hi,

    I want to Convert Unicode String to Actual string, here Unicode data is present in one file like(unicode.txt).
    I am trying to read data from and storing in string, Now That string contains unicode data.Now I want to convert That string to actual data and print that String.

    Can anyone Please provide a solution?

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Convert Unicode data to Actual data

    What it is "actual data" ?

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Convert Unicode data to Actual data

    And there is no single encoding named "unicode" but a whole set of them.

    Cheers,
    _

  4. #4
    Join Date
    Apr 2011
    Location
    Hyderabad
    Posts
    86
    Thanks
    17
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Convert Unicode data to Actual data

    I am getting input of bengali text in the form of Utf-8 encoding,and i want to convert the Utf-8 encoding to original bengali text i.e actual string in my post

  5. #5
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Convert Unicode data to Actual data

    QTextStream::setCodec() and obviously QFile for the actual file access.

    Cheers,
    _

Similar Threads

  1. Replies: 1
    Last Post: 27th February 2016, 17:16
  2. Replies: 8
    Last Post: 21st July 2015, 14:40
  3. Replies: 11
    Last Post: 29th May 2012, 16:00
  4. Qt Creator How to watch data of actual type in debugger?
    By kamre in forum Qt Tools
    Replies: 2
    Last Post: 23rd June 2011, 18:50
  5. How to convert binary data to hexadecimal data
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 8th March 2006, 17:17

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.