How do I use unicode
in C
? I just do not know how to store the 2 bytes of a unicode
in a char, only this, does anyone know how?
How do I use unicode
in C
? I just do not know how to store the 2 bytes of a unicode
in a char, only this, does anyone know how?
wchar_t seu_caractere = L'\u1234'
There are other data types for custom characters, such as char32_t
. But in your case, it's easy to deal with the problem using wide char .