I couldn't solve Turkish character problem in C++.If I use wstring for a Turkish character,writing
wstring TurkishCharacters;
and then :
TurkishCharacter=L"çı"; // I don't know if you are able to see the Turkish characters
// "ç",it is a character similar to "c" and the other character
// is similar to "i" but a bit different.
It gives this error:
"... error: converting to execution character set: Invalid argument"
But for example,if I use:
getline(wcin,TurkishCharacter);
wcout << TurkishCharacter;
It is able to print what I entered from keyboard.But I am not able to assign a text without requesting user input...
If I use string instead of wstring,then I am able to assign Turkish characters to a string
string TurkishCharacter;
TurkishCharacter="çı";
Although it doesn't give any error,it doesn't work as expected,cout prints abnormal characters.
Bookmarks