Germany character /Umlaut letter on SuSE 9.1, Qt 3.1.
dear my friends... my QTable dan QMessageBox can not display umlaut letter such as ' ä ' (ae), ' ü ' (ue) and ' ö '(oe). My QDataBase and my QLineEdit can display the umlaut letters but the QMessageBox and QTable don't. Here I tried this line... 1. with QMessageBox: int itemsidcomboBox = salesidcomboBox->currentItem(); if (itemsidcomboBox==0){ QMessageBox::warning(this, "Achtung !", "Für welche Berater ID ?" ); return false; } 2. with QTable: liattable->setText(0,0, "äüö"); and both of them can not display the umlaut character (ö,ü. ä) properly. What should I do? what should I do to make my QTable and my QMessageBox can display the umlaut letters. Thank you very much in advance. __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail
On Thursday 26 August 2004 16:48, Prabu Subroto wrote:
dear my friends...
my QTable dan QMessageBox can not display umlaut letter such as ' ä ' (ae), ' ü ' (ue) and ' ö '(oe).
My QDataBase and my QLineEdit can display the umlaut letters but the QMessageBox and QTable don't.
Here I tried this line...
1. with QMessageBox:
int itemsidcomboBox = salesidcomboBox->currentItem(); if (itemsidcomboBox==0){ QMessageBox::warning(this, "Achtung !", "Für welche Berater ID ?" );
You have to convert that from UTF-8 to Unicode. QString uses Unicode
everyhere. Use QString::fromUtf8() if you enter that in UTF-8.
If you enter it in ISO-8859-1, Qt will silently take care of conversion to
UTF-8.
CU
--
Stefan Hundhammer
participants (2)
-
Prabu Subroto
-
Stefan Hundhammer