PDA

View Full Version : Unicode Character Problem



prakash
11th May 2006, 06:47
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.
:(

zlatko
11th May 2006, 07:25
Use QTextCodec (http://doc.trolltech.com/4.0/qtextcodec.html) from convert your url to unicode...

Just remark..try use only english characters in url ;)