|
@@ -314,10 +314,22 @@ end;
|
|
|
|
|
|
procedure TBaseTestReader.TestString;
|
|
|
|
|
|
+const
|
|
|
+ GlowingStar = #$F0#$9F#$8C#$9F;
|
|
|
+ Chinese = #$95e8#$88ab#$8111#$5b50#$6324#$574f#$4e86;
|
|
|
+
|
|
|
begin
|
|
|
DoTestString('A string');
|
|
|
DoTestString('');
|
|
|
DoTestString('\"','"');
|
|
|
+ DoTestString('\u00f8','ø'); // this is ø
|
|
|
+ DoTestString('\u00f8\"','ø"'); // this is ø"
|
|
|
+ DoTestString('\ud83c\udf1f',GlowingStar);
|
|
|
+ DoTestString('\u0041\u0042','AB'); //issue #0038622
|
|
|
+ DoTestString('\u0041\u0042\u0043','ABC');
|
|
|
+ DoTestString('\u0041\u0042\u0043\u0044','ABCD');
|
|
|
+ DoTestString('\u95e8\u88ab\u8111\u5b50\u6324\u574f\u4e86',Utf8Encode(Chinese));
|
|
|
+
|
|
|
end;
|
|
|
|
|
|
|