1--TEST-- 2Test verification and conversion of UCS-2 text 3--EXTENSIONS-- 4mbstring 5--FILE-- 6<?php 7include('encoding_tests.inc'); 8mb_substitute_character(0x25); 9 10// Test "long" illegal character markers 11mb_substitute_character("long"); 12 13convertInvalidString("\x00\x01\x02\x03", "\x00U\x00+\x001\x000\x002\x000\x003", "UTF-32BE", "UCS-2BE"); 14convertInvalidString("\x11", "%", "UCS-2BE", "UTF-8"); 15 16convertInvalidString("\x00\x01\x02\x03", "U\x00+\x001\x000\x002\x000\x003\x00", "UTF-32BE", "UCS-2LE"); 17convertInvalidString("\x11", "%", "UCS-2LE", "UTF-8"); 18 19echo "Done!"; 20?> 21--EXPECT-- 22Done! 23