--TEST-- Exhaustive test of verification and conversion of Big5 text --EXTENSIONS-- mbstring --SKIPIF-- --FILE-- UTF-16BE\n"; testAllValidChars($fromUnicode, 'UTF-16BE', 'BIG5', false); findInvalidChars($fromUnicode, $invalid, $unused, array_fill_keys(range(0,0xFF), 2)); convertAllInvalidChars($invalid, $fromUnicode, 'UTF-16BE', 'BIG5', '%'); echo "Tested UTF-16BE -> BIG5\n"; // Test "long" illegal character markers mb_substitute_character("long"); convertInvalidString("\x80", "%", "BIG5", "UTF-8"); convertInvalidString("\xB0\x9F", "%", "BIG5", "UTF-8"); convertInvalidString("\xA3\xED", "%", "BIG5", "UTF-8"); convertInvalidString("\x76\x54", "U+7654", "UTF-16BE", "BIG5"); echo "Done!\n"; ?> --EXPECT-- Tested BIG5 -> UTF-16BE Tested UTF-16BE -> BIG5 Done!