cristiano
6th November 2006, 00:04
Hi all,
I am having problems in converting QStrings default for Utf8, and the data typed for the users are entering with defect in database.
The language of the application is in (Brazil Portuguese).
Already I made some attempts without success more, as for example.
/********* Foo Test **********/
QTextCodec::setCodecForLocale ( QTextCodec::codecForName ( "UTF-8" ) );
QTextCodec::setCodecForCStrings ( QTextCodec::codecForName ( "UTF-8" );
QString Test = textEdit3->text();
textEdit3->setText(QString::fromUtf8(Test));
/*******************************/
Some idea of as I can transform this.
Cristiano
I am having problems in converting QStrings default for Utf8, and the data typed for the users are entering with defect in database.
The language of the application is in (Brazil Portuguese).
Already I made some attempts without success more, as for example.
/********* Foo Test **********/
QTextCodec::setCodecForLocale ( QTextCodec::codecForName ( "UTF-8" ) );
QTextCodec::setCodecForCStrings ( QTextCodec::codecForName ( "UTF-8" );
QString Test = textEdit3->text();
textEdit3->setText(QString::fromUtf8(Test));
/*******************************/
Some idea of as I can transform this.
Cristiano