for example I have this string:
std::wstring s = L"123";
s.push_back(0x202e);
s.append(L"abc");
Here 0x202e
is UTF-16 mark RLO (Right-to-Left override). Because of this, string after printing looks: cba123
. I want to ask if there is any function which could convert first string into the one which is printed.
Also it would be good if that function also could handle all kind of UTF-16 BOMs.
Is there any standart way? I'm coding with C++ and I'm free to use boost or some other free lib.