Everything that I want to do it's just only to output one line of text:
#include <iostream>
#include <string>
int main(void)
{
std::wstring d=L"string_contains_many_languages_German_Mädchenß_Russian_этотязык_and_ブリザンメント";
std::wcout<<d<<"\n";
return 0;
}
I heard about locales. But what if I have a multilingual user? So,I can't stick to only one locale.
It works properly neither in Linux/Ubuntu with g++ compiler nor in Windows XP.
I suspect that perhaps it somehow depends not only from C++, but from terminal that shows this info and from environment. In Linux I can create a file with the name using command touch "ブリザаäЯ" (tilda terminal).
I wonder whether it's possible at least to create a file with the name that I have in a string like d (in code) using C++ means
Correction:
Also I want to do these operations on Windows and Linux