char32_t c = U'▁' works under GCC and Clang, but fails under MSVC with the error
error C2015: too many characters in constant U'\u2581' works, but is this a compiler bug? Microsoft's String and character literals documentation doesn't seem to say anything about it not being supported, but maybe I've missed something relevant.
1 Answer
@remy-lebeau and @mark-tolonen are correct. I had this issue and adding the /utf-8 compiler flag is what I needed. My source file was using utf-8. I am using VS 2022 (17.4.4).