c++ - How to print this unicode line using one string? -
i'm having problems specific unicode character.
let's want print out október: ó=u+00f3
setlocale(lc_all, ""); cout << "\xf3"; //this prints ó cout << "okt\xf3"; //this prints októ cout << "okt\xf3ber"; //this prints oktľr the way know print out október is:
cout << okt\xf3 << ber; how create sting prints október?
you can use compile-time string concatenation prevent escape sequence going further wanted:
cout << "okt\xf3" "ber";
Comments
Post a Comment