File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -165,16 +165,15 @@ auto TestCollator(json_object *json_in) -> string {
165
165
json_object *str1 = json_object_object_get (json_in, " s1" );
166
166
json_object *str2 = json_object_object_get (json_in, " s2" );
167
167
168
- // Unescape the input strings?
169
168
// We need to handle null characters, so get the length and the bytes.
170
169
int str1_len = json_object_get_string_len (str1);
171
170
string_view string1 (json_object_get_string (str1), str1_len);
172
171
int str2_len = json_object_get_string_len (str2);
173
172
string_view string2 (json_object_get_string (str2), str2_len);
174
173
175
174
// Does this conversion preserve the data?
176
- UnicodeString us1 = UnicodeString::fromUTF8 (string1). unescape () ;
177
- UnicodeString us2 = UnicodeString::fromUTF8 (string2). unescape () ;
175
+ UnicodeString us1 = UnicodeString::fromUTF8 (string1);
176
+ UnicodeString us2 = UnicodeString::fromUTF8 (string2);
178
177
179
178
string test_result;
180
179
int uni_result_utf8;
You can’t perform that action at this time.
0 commit comments