File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -29,3 +29,21 @@ BOOST_AUTO_TEST_CASE(decoding_test) {
29
29
uri::decode (encoded, std::back_inserter (instance));
30
30
BOOST_CHECK_EQUAL (instance, unencoded);
31
31
}
32
+
33
+ BOOST_AUTO_TEST_CASE (encoding_multibyte_test) {
34
+ const std::string unencoded (" 한글 테스트" );
35
+ const std::string encoded (" %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
+ const std::string unencoded (" 한글 테스트" );
44
+ const std::string encoded (" %ED%95%9C%EA%B8%80%20%ED%85%8C%EC%8A%A4%ED%8A%B8" );
45
+
46
+ std::string instance;
47
+ uri::decode (encoded, std::back_inserter (instance));
48
+ BOOST_CHECK_EQUAL (instance, unencoded);
49
+ }
You can’t perform that action at this time.
0 commit comments