From 4d1b92f1d4e9f2f80d04b452246399cb40bb543d Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 12 Mar 2019 17:57:48 +0100 Subject: Normalize to FORM_C in any2utf8 --- test/it.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/it.t b/test/it.t index fdaef6c..b624f96 100755 --- a/test/it.t +++ b/test/it.t @@ -424,6 +424,8 @@ foreach ([ 'a' => 'ä', 'e' => 'ë', 'i' => 'ï', 'o' => 'ö', 'u' => 'ü' ] as is(it::any2utf8("$src\xcc\x88"), $dst, "it::any2utf8 normalize combining diaeresis $dst to umlaut code $dst"); } +is(it::any2utf8("\x65\xcc\x81"), "é", "it::any2utf8 convert to normal form C"); + foreach (array($dummy, false, true, null, 1, "a", "Ä", "/", array()) as $var) is(it::json_decode(it::json_encode($var)), $var); is(it::json_decode('{"foo":"bar"}')->foo, "bar"); -- cgit v1.2.3