mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 10:28:09 +08:00
add u8 to the front of UTF-8 string literal
explicitly set the character encoding for them, for compatibility
This commit is contained in:
@@ -31,8 +31,8 @@ BOOST_AUTO_TEST_CASE(test_basic_string)
|
||||
"\"192.168.1.1\"",
|
||||
"\"192.168.1.1\"");
|
||||
TOML11_TEST_LEX_ACCEPT(lex_string,
|
||||
"\"中国\"",
|
||||
"\"中国\"");
|
||||
u8"\"中国\"",
|
||||
u8"\"中国\"");
|
||||
TOML11_TEST_LEX_ACCEPT(lex_string,
|
||||
"\"You'll hate me after this - #\"",
|
||||
"\"You'll hate me after this - #\"");
|
||||
|
Reference in New Issue
Block a user