We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2019-10-23 09:44 AM - last edited on 2022-09-29 10:06 AM by Daniel Kassai
Solved! Go to Solution.
2019-10-23 10:59 AM
String literals can have no prefix, or u8, L, u, and U prefixes to denote narrow character (single-byte or multi-byte), UTF-8, wide character (UCS-2 or UTF-16), UTF-16 and UTF-32 encodings...So if you want to make sure that your string literal will be encoded as UTF-8, then you should use u8 perfix.// String literals auto s0 = "hello"; // const char* auto s1 = u8"hello"; // const char*, encoded as UTF-8 auto s2 = L"hello"; // const wchar_t* auto s3 = u"hello"; // const char16_t*, encoded as UTF-16 auto s4 = U"hello"; // const char32_t*, encoded as UTF-32
ACAPI_WriteReport(u8"你好");
2019-10-23 10:59 AM
String literals can have no prefix, or u8, L, u, and U prefixes to denote narrow character (single-byte or multi-byte), UTF-8, wide character (UCS-2 or UTF-16), UTF-16 and UTF-32 encodings...So if you want to make sure that your string literal will be encoded as UTF-8, then you should use u8 perfix.// String literals auto s0 = "hello"; // const char* auto s1 = u8"hello"; // const char*, encoded as UTF-8 auto s2 = L"hello"; // const wchar_t* auto s3 = u"hello"; // const char16_t*, encoded as UTF-16 auto s4 = U"hello"; // const char32_t*, encoded as UTF-32
ACAPI_WriteReport(u8"你好");
2019-10-24 05:42 AM