PDA

View Full Version : Escape Sequences in Qt



Kofie
21st March 2007, 09:35
Hi Everyone!

I am working with Qt4.2 on Ubuntu Dapper - actually I am trying to give a Groupbox the String "Blabla in m³".

I tried with typing in the String as seen above and also with the Unicode escape sequence \u00b3.
Neither works.. always in my compiled program the Groupbox shows "Blabla in mij".

Any Ideas how to get rid of that Ä here? I tried everything that came in my mind (including QString->remove) but nothing worked..

Thx in advance!!

wysota
21st March 2007, 10:33
Try QString::fromUtf8("Blabla in m\xc2\xb3");