I am trying to apply a lower function to non-ASCII characters. The following code does not work on Linux (Ubuntu), but works on windows.
int main() {
std:string data="ŽŠ";
std::transform(data.begin(), data.end(), data.begin(), ::tolower);
cout<< data << endl;
return 0;
}
I tried to install language packs but did not work. Can someone tell me what I am missing in this code?
source
share