No, not worth it! The Unicode 4.0 standard (ISO 10646: 2003) states that:
The width of wchar_t depends on the compiler and can be as much as 8 bits. Therefore, programs that must be portable across any C or C ++ compiler should not use wchar_t to store text in Unicode.
In most cases, the "character" of UTF-8 text will not be relevant to your program, so treating it as an array of char elements, like any other line, will suffice. However, if you need to extract individual characters, these characters must be stored in a type with a width of at least 24 bits (e.g. uint32_t ) to accommodate all Unicode code points.
source share