This is exact issue I am having with foreign language:- When I tried to do UTf8() it get breaks:-
http://www.qtcentre.org/threads/1508...hlight=wchar_t
QString memo_text
=textEdit.
toPlainText();
qDebug()<<memo_text; //Korean String value correct;
qDebug()<<memo_text; //Korean String value incorrect; (weird characters) if I typed in korean
strcpy(memo_info->text , textTemp.data());
qDebug()<<memo_text; //Korean String value incorrect;
QString memo_text=textEdit.toPlainText();
qDebug()<<memo_text; //Korean String value correct;
QByteArray textTemp(memo_text.toUtf8() );
qDebug()<<memo_text; //Korean String value incorrect; (weird characters) if I typed in korean
strcpy(memo_info->text , textTemp.data());
qDebug()<<memo_text; //Korean String value incorrect;
To copy to clipboard, switch view to plain text mode
Bookmarks