@@ -112,13 +112,13 @@ static void to_json(BasicJsonType& j, country c)
112112 switch (c)
113113 {
114114 case country::china:
115- j = u8 " 中华人民共和国" ;
115+ j = " 中华人民共和国" ;
116116 return ;
117117 case country::france:
118118 j = " France" ;
119119 return ;
120120 case country::russia:
121- j = u8 " Российская Федерация" ;
121+ j = " Российская Федерация" ;
122122 return ;
123123 default :
124124 break ;
@@ -201,9 +201,9 @@ static void from_json(const BasicJsonType& j, country& c)
201201 const auto str = j.template get <std::string>();
202202 static const std::map<std::string, country> m =
203203 {
204- {u8 " 中华人民共和国" , country::china},
204+ {" 中华人民共和国" , country::china},
205205 {" France" , country::france},
206- {u8 " Российская Федерация" , country::russia}
206+ {" Российская Федерация" , country::russia}
207207 };
208208
209209 const auto it = m.find (str);
@@ -248,7 +248,7 @@ TEST_CASE("basic usage" * doctest::test_suite("udt"))
248248 const udt::name n{" theo" };
249249 const udt::country c{udt::country::france};
250250 const udt::person sfinae_addict{a, n, c};
251- const udt::person senior_programmer{{42 }, {u8 " 王芳" }, udt::country::china};
251+ const udt::person senior_programmer{{42 }, {" 王芳" }, udt::country::china};
252252 const udt::address addr{" Paris" };
253253 const udt::contact cpp_programmer{sfinae_addict, addr};
254254 const udt::contact_book book{{" C++" }, {cpp_programmer, {senior_programmer, addr}}};
@@ -265,14 +265,14 @@ TEST_CASE("basic usage" * doctest::test_suite("udt"))
265265
266266 CHECK (
267267 json (book) ==
268- u8R "( {"name":"C++", "contacts" : [{"person" : {"age":23, "name":"theo", "country":"France"}, "address":"Paris"}, {"person" : {"age":42, "country":"中华人民共和国", "name":"王芳"}, "address":"Paris"}]})" _json);
268+ R "( {"name":"C++", "contacts" : [{"person" : {"age":23, "name":"theo", "country":"France"}, "address":"Paris"}, {"person" : {"age":42, "country":"中华人民共和国", "name":"王芳"}, "address":"Paris"}]})" _json);
269269
270270 }
271271
272272 SECTION (" conversion from json via free-functions" )
273273 {
274274 const auto big_json =
275- u8R "( {"name":"C++", "contacts" : [{"person" : {"age":23, "name":"theo", "country":"France"}, "address":"Paris"}, {"person" : {"age":42, "country":"中华人民共和国", "name":"王芳"}, "address":"Paris"}]})" _json;
275+ R "( {"name":"C++", "contacts" : [{"person" : {"age":23, "name":"theo", "country":"France"}, "address":"Paris"}, {"person" : {"age":42, "country":"中华人民共和国", "name":"王芳"}, "address":"Paris"}]})" _json;
276276 SECTION (" via explicit calls to get" )
277277 {
278278 const auto parsed_book = big_json.get <udt::contact_book>();
0 commit comments