3 ms·
Are my eyes failing me? > C++17 includes the following new language features: > ... > utf-8 character literals > ... > char x = u8'x';
by vadimberman 9y ago
Are my eyes failing me?
> C++17 includes the following new language features:
> ...
> utf-8 character literals
> ...
> char x = u8'x';
- cbsmith 9y agoC++11 introduced utf-8 encoded string literals. However, when the parser was reading the characters in the literal, they were interpreted in whatever character set encoding the compiler was using (you could use escaped characters to represent unicode characters that had no representation in that encoding).