Using Unicode in a variable char


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?

asked by anonymous 28.10.2015 / 03:57

1 answer


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 .

12.01.2016 / 16:49