Hi,
you're right if I just use Qlabel label("Å¡Äťž") on desktop it doesn't display correctly in QLabel.
I use following code and it display correctly on desktop but not on embedded device (just empty window):
	
	#include <QtGui/QApplication>
#include <QLabel>
#include <QTextCodec>
 
int main(int argc, char *argv[])
{
 
        QString string 
= codec
->toUnicode
(encodedString
);
  
        view->setText(string);
 
        view->show();
	return a.exec();
}
        #include <QtGui/QApplication>
#include <QLabel>
#include <QTextCodec>
int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
        QByteArray encodedString = "Å¡Äťž";
        QTextCodec *codec = QTextCodec::codecForName("utf-8");
        QString string = codec->toUnicode(encodedString);
        QLabel *view = new QLabel();
        view->setText(string);
        view->show();
	return a.exec();
}
To copy to clipboard, switch view to plain text mode 
  
I try to look to docu for qwebview and found followig method:
	
	view->settings()->setDefaultTextEncoding("utf-8");
        view->settings()->setDefaultTextEncoding("utf-8");
To copy to clipboard, switch view to plain text mode 
  
but have still same result (no correct output). My webpages are utf-8 encoded.Any other options to check?
Thanks in advance,
Marek
				
			
Bookmarks