4 ms·
Really, UTF literals only now?
by vadimberman 9y ago
Really, UTF literals only now?
- cbsmith 9y agoNope. They just got a minor update.
- vadimberman 9y agoAre 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).