Results 1 to 2 of 2

Thread: Unicode Character Problem

  1. #1
    Join Date
    Feb 2006
    Posts
    24
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Unicode Character Problem

    Hi all,

    My application reads web pages into QByteArray Using QTcpSocket. Then it assigns QByteArray to QString and uses QRegexp to extract the URLs from the String. The problem is, if there are Characters from languages other then English, the application is unable to extract the URLs. I have enabled “Use Unicode Character Set" in the Visual Studio but it won't work.

    Could anyone suggest what to do?

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Unicode Character Problem

    Use QTextCodec from convert your url to unicode...

    Just remark..try use only english characters in url
    a life without programming is like an empty bottle

Similar Threads

  1. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  2. QProcess and unicode problem
    By ramazangirgin in forum Qt Programming
    Replies: 0
    Last Post: 6th June 2008, 12:22
  3. i have a problem with Qt unicode
    By coder1985 in forum Qt Programming
    Replies: 5
    Last Post: 20th November 2007, 20:08
  4. Unicode problem in hoverlink
    By anju123 in forum Qt Programming
    Replies: 2
    Last Post: 27th August 2007, 13:56
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.