2016-03-25 3:58 GMT+03:00 deloptes <deloptes(a)gmail.com>om>:
Hi all,
...
However this works in my test program
std::string teststr(newItem.ascii());
std::cout << teststr << "\n";
and this contradicts the logic of ascii all äöü are there
Nope, it doesn't... see the ascii () documentation: «If a codec has
been set using QTextCodec::codecForCStrings(), it is used to convert
Unicode to 8-bit char. Otherwise, this function does the same as
latin1().»
However you generally shouldn't use ascii() unless either you are
positive that string contains only ascii chars or some over interface
accepts strictly those and you doesn't care about others...