We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents08bdb6b +eb2cb6f commita65404eCopy full SHA for a65404e
libs/network/test/uri/uri_encoding_test.cpp
@@ -29,3 +29,21 @@ BOOST_AUTO_TEST_CASE(decoding_test) {
29
uri::decode(encoded,std::back_inserter(instance));
30
BOOST_CHECK_EQUAL(instance, unencoded);
31
}
32
+
33
+BOOST_AUTO_TEST_CASE(encoding_multibyte_test) {
34
+const std::stringunencoded("한글 테스트");
35
+const std::stringencoded("%ED%95%9C%EA%B8%80%20%ED%85%8C%EC%8A%A4%ED%8A%B8");
36
37
+ std::string instance;
38
+uri::encode(unencoded,std::back_inserter(instance));
39
+BOOST_CHECK_EQUAL(instance, encoded);
40
+}
41
42
+BOOST_AUTO_TEST_CASE(decoding_multibyte_test) {
43
44
45
46
47
+uri::decode(encoded,std::back_inserter(instance));
48
+BOOST_CHECK_EQUAL(instance, unencoded);
49