Unicode

From ThorstensHome
Revision as of 11:04, 26 December 2008 by WikiSysop (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
   QFile inputfile(args->url(0).fileName());
   inputfile.open(QIODevice::ReadOnly);
   inputfilecontent = inputfile.read(inputfile.bytesAvailable());
   kDebug() << "inputfilecontent.data()[0]"<<(byte)inputfilecontent.data()[0];
   kDebug() << "inputfilecontent.data()[1]"<<(byte)inputfilecontent.data()[1];

ü UTF8 encoded delivers

195 
188