/PHP-8.4/ext/mbstring/tests/ |
H A D | euc_tw_encoding.phpt | 2 Exhaustive test of verification and conversion of EUC-TW text 19 testAllValidChars($toUnicode, 'EUC-TW', 'UTF-16BE', false); 23 echo "Tested EUC-TW -> UTF-16BE\n"; 27 echo "Tested UTF-16BE -> EUC-TW\n"; 31 convertInvalidString("\x80", "%", "EUC-TW", "UTF-8"); 32 convertInvalidString("\x8E\x20", "%", "EUC-TW", "UTF-8"); 36 convertInvalidString("\x8F", "%", "EUC-TW", "UTF-8"); 37 convertInvalidString("\xA1\x50", "%", "EUC-TW", "UTF-8"); 38 convertInvalidString("\xFD\xCC", "%", "EUC-TW", "UTF-8"); 43 Tested EUC-TW -> UTF-16BE [all …]
|
H A D | mb_convert_encoding.phpt | 19 print("EUC-JP: $s\n"); // EUC-JP 22 print("EUC-JP: $s\n"); // EUC-JP 33 $a = 'JIS,UTF-8,EUC-JP,SJIS'; 36 print("EUC-JP: $s\n"); // EUC-JP 49 $a = ['JIS', 'UTF-8', 'EUC-JP', 'SJIS']; 52 print("EUC-JP: $s\n"); // EUC-JP 70 print("EUC-JP: $s\n"); // EUC-JP 82 $s = mb_convert_encoding(1234, 'EUC-JP'); 85 $s = mb_convert_encoding('', 'EUC-JP'); 86 print("EUC-JP: $s\n"); // SJIS [all …]
|
H A D | mb_convert_variables.phpt | 19 // EUC-JP string 36 print("$encoding\n"); // EUC-JP 41 print("$encoding\n"); // EUC-JP 182 EUC-JP 184 EUC-JP 186 EUC-JP 189 EUC-JP 191 EUC-JP 194 EUC-JP 196 EUC-JP [all …]
|
H A D | euc_cn_encoding.phpt | 2 Exhaustive test of verification and conversion of EUC-CN text 12 testEncodingFromUTF16ConversionTable(__DIR__ . '/data/EUC-CN.txt', 'EUC-CN'); 16 convertInvalidString("\x80", "%", "EUC-CN", "UTF-8"); 17 convertInvalidString("\xA1\x50", "%", "EUC-CN", "UTF-8"); 18 convertInvalidString("\xF7\xFF", "%", "EUC-CN", "UTF-8"); 23 Tested EUC-CN -> UTF-16BE 24 Tested UTF-16BE -> EUC-CN
|
H A D | mb_ereg_search_xxx.phpt | 39 (EUC-JP) (10) ���� 40 (EUC-JP) (5) abcde 41 (EUC-JP) (14) abdeabcf 42 (EUC-JP) (22) abc 43 (EUC-JP) (31) abcd 44 (EUC-JP) (5) �ϡ� 45 (EUC-JP) (10) ���� 46 (EUC-JP) (5) abcde 47 (EUC-JP) (14) abdeabcf 48 (EUC-JP) (22) abc [all …]
|
H A D | euc_kr_encoding.phpt | 2 Exhaustive test of verification and conversion of EUC-KR text 12 testEncodingFromUTF16ConversionTable(__DIR__ . '/data/EUC-KR.txt', 'EUC-KR'); 16 convertInvalidString("\x80", "%", "EUC-KR", "UTF-8"); 17 convertInvalidString("\xA7\xF0", "%", "EUC-KR", "UTF-8"); 22 Tested EUC-KR -> UTF-16BE 23 Tested UTF-16BE -> EUC-KR
|
H A D | mb_stripos.phpt | 15 $slen = mb_strlen($euc_jp, 'EUC-JP'); 18 // EUC-JP - With encoding parameter 48 $r = mb_stripos($euc_jp, '0', 40, 'EUC-JP'); 50 $r = mb_stripos($euc_jp, 3, 40, 'EUC-JP'); 52 $r = mb_stripos($euc_jp, 0, 40, 'EUC-JP'); 56 $r = mb_stripos($euc_jp, '0', -3, 'EUC-JP'); 58 $r = mb_stripos($euc_jp, 3, -3, 'EUC-JP'); 60 $r = mb_stripos($euc_jp, 0, -3, 'EUC-JP'); 69 $r = mb_stripos($euc_jp, "\n", 0, 'EUC-JP'); 73 // EUC-JP - No encoding parameter [all …]
|
H A D | eucjp_2004_encoding.phpt | 2 Exhaustive test of EUC-JP-2004 encoding verification and conversion 15 $validChars = array(); /* EUC-JP-2004 string -> UTF-32BE */ 16 $fromUnicode = array(); /* UTF-16BE -> EUC-JP-2004 */ 17 $fp = fopen(__DIR__ . '/data/EUC-JP-2004.txt', 'r+'); 58 testAllValidChars($validChars, 'EUC-JP-2004', 'UTF-32BE'); 66 testAllValidChars($fromUnicode, 'UTF-16BE', 'EUC-JP-2004', false); 75 convertInvalidString("\x80", "%", "EUC-JP-2004", "UTF-8"); 76 convertInvalidString("\xFE\xFF", "%", "EUC-JP-2004", "UTF-8"); 81 EUC-JP-2004 verification and conversion works for all valid characters 83 Unicode -> EUC-JP-2004 conversion works on all valid characters [all …]
|
H A D | mb_regex_encoding_variation2.phpt | 176 string(6) "EUC-JP" 179 string(6) "EUC-JP" 186 string(6) "EUC-JP" 189 string(6) "EUC-JP" 311 string(6) "EUC-CN" 314 string(6) "EUC-CN" 316 string(6) "EUC-CN" 319 string(6) "EUC-CN" 321 string(6) "EUC-CN" 324 string(6) "EUC-CN" [all …]
|
H A D | eucjp_encoding.phpt | 2 Exhaustive test of EUC-JP encoding verification and conversion 15 /* Read in the table of all characters in EUC-JP */ 21 /* Kuten code 0x2140 (EUC-JP 0xA1C0) is a backslash; this can be mapped to 42 * When converting Unicode to EUC-JP, use the simpler representation */ 58 testAllValidChars($validChars, 'EUC-JP', 'UTF-32BE'); 68 testAllValidChars($fromUnicode, 'UTF-32BE', 'EUC-JP', false); 69 echo "Unicode -> EUC-JP conversion works on all valid characters\n"; 82 convertInvalidString("\x80", "%", "EUC-JP", "UTF-8"); 83 convertInvalidString("\xFE\xFF", "%", "EUC-JP", "UTF-8"); 91 Unicode -> EUC-JP conversion works on all valid characters [all …]
|
H A D | mb_strpos.phpt | 16 $slen = mb_strlen($euc_jp, 'EUC-JP'); 19 // EUC-JP - With encoding parameter 25 print mb_strpos($euc_jp, '0', 0, 'EUC-JP') . "\n"; 26 print mb_strpos($euc_jp, 3, 0, 'EUC-JP') . "\n"; 27 print mb_strpos($euc_jp, 0, 0, 'EUC-JP') . "\n"; 29 print mb_strpos($euc_jp, '0', 15, 'EUC-JP') . "\n"; 30 print mb_strpos($euc_jp, 3, 15, 'EUC-JP') . "\n"; 31 print mb_strpos($euc_jp, 0, 15, 'EUC-JP') . "\n"; 49 $r = mb_strpos($euc_jp, "\n", 0, 'EUC-JP'); 53 // EUC-JP - No encoding parameter [all …]
|
H A D | mb_convert_encoding_basic.phpt | 24 var_dump(base64_encode(mb_convert_encoding($euc_jp_string, 'JIS', 'EUC-JP'))); 27 echo "\n-- Convert to EUC-JP --\n"; 28 echo "EUC-JP encoded string in base64:\n"; 31 var_dump(base64_encode(mb_convert_encoding($sjis_string, 'EUC-JP', 'SJIS'))); 32 var_dump(base64_encode(mb_convert_encoding($jis_string, 'EUC-JP', 'JIS'))); 33 var_dump(base64_encode(mb_convert_encoding($utf8_string, 'EUC-JP', 'UTF-8'))); 40 var_dump(base64_encode(mb_convert_encoding($euc_jp_string, 'SJIS', 'EUC-JP'))); 49 var_dump(base64_encode(mb_convert_encoding($euc_jp_string, 'UTF-8', 'EUC-JP'))); 64 -- Convert to EUC-JP -- 65 EUC-JP encoded string in base64:
|
H A D | bug26639.phpt | 9 mb_convert_variables("EUC-JP", "Shift_JIS", $b); 17 mb_convert_variables("EUC-JP", "Shift_JIS", $b); 26 mb_convert_variables("EUC-JP", "Shift_JIS", $c); 36 mb_convert_variables("EUC-JP", "Shift_JIS", $c); 46 mb_convert_variables("EUC-JP", "Shift_JIS", $c); 56 mb_convert_variables("EUC-JP", "Shift_JIS", $c); 66 mb_convert_variables("EUC-JP", "Shift_JIS", $c);
|
H A D | mb_detect_order.phpt | 21 $r = mb_detect_order('SJIS,EUC-JP,JIS,UTF-8'); 29 $a[] = 'EUC-JP'; 56 ASCII, JIS, UTF-8, EUC-JP, SJIS 58 SJIS, EUC-JP, JIS, UTF-8 60 ASCII, JIS, EUC-JP, UTF-8 69 string(6) "EUC-JP" 80 string(6) "EUC-JP"
|
H A D | mb_output_handler_euc_jp.phpt | 2 mb_output_handler() (EUC-JP) 9 // EUC-JP 11 mb_http_output('EUC-JP') or print("mb_http_output() failed\n");
|
H A D | mb_convert_encoding_array.phpt | 36 var_dump(base64_encode_array(mb_convert_encoding($euc_jp_string, 'JIS', 'EUC-JP'))); 39 echo "\n-- Convert to EUC-JP --\n"; 40 echo "EUC-JP encoded string in base64:\n"; 43 var_dump(base64_encode_array(mb_convert_encoding($sjis_string, 'EUC-JP', 'SJIS'))); 44 var_dump(base64_encode_array(mb_convert_encoding($jis_string, 'EUC-JP', 'JIS'))); 45 var_dump(base64_encode_array(mb_convert_encoding($utf8_string, 'EUC-JP', 'UTF-8'))); 52 var_dump(base64_encode_array(mb_convert_encoding($euc_jp_string, 'SJIS', 'EUC-JP'))); 61 var_dump(base64_encode_array(mb_convert_encoding($euc_jp_string, 'UTF-8', 'EUC-JP'))); 96 -- Convert to EUC-JP -- 97 EUC-JP encoded string in base64:
|
H A D | mb_strstr.phpt | 8 return mb_convert_encoding($utf8str, "EUC-JP", "UTF-8"); 12 return mb_convert_encoding($eucjpstr, "UTF-8", "EUC-JP"); 18 var_dump(FROM_EUC_JP(mb_strstr(EUC_JP("あいうえおかきくけこ"), EUC_JP("おかき"), false, "EUC-JP"))); 19 var_dump(FROM_EUC_JP(mb_strstr(EUC_JP("あいうえおかきくけこ"), EUC_JP("おかき"), true, "EUC-JP"))); 20 mb_internal_encoding("EUC-JP");
|
H A D | zend_multibyte-05.phpt | 7 zend.script_encoding=EUC-JP 11 // forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it 13 // valid EUC-encoded character "鴻".
|
H A D | zend_multibyte-09.phpt | 11 declare(encoding="EUC-JP"); 12 // forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it 14 // valid EUC-encoded character "鴻".
|
H A D | mb_internal_encoding_variation2.phpt | 31 'EUC-JP', 54 'EUC-CN', 57 'EUC-TW', 164 string(6) "EUC-JP" 167 string(6) "EUC-JP" 279 string(6) "EUC-CN" 282 string(6) "EUC-CN" 294 string(6) "EUC-TW" 297 string(6) "EUC-TW" 309 string(6) "EUC-KR" [all …]
|
/PHP-8.4/tests/basic/ |
H A D | encoding.phpt | 16 var_dump(ini_set('input_encoding', 'EUC-JP')); 17 var_dump(ini_set('internal_encoding', 'EUC-JP')); 18 var_dump(ini_set('output_encoding', 'EUC-JP')); 36 string(6) "EUC-JP" 37 string(6) "EUC-JP" 38 string(6) "EUC-JP"
|
/PHP-8.4/ext/iconv/tests/ |
H A D | iconv_basic.phpt | 18 echo "\n-- Convert to EUC-JP --\n"; 19 echo "Expected EUC-JP encoded string in base64:\n"; 22 var_dump(bin2hex(iconv('SJIS', 'EUC-JP', $sjis_string ))); 23 var_dump(bin2hex(iconv('UTF-8', 'EUC-JP', $utf8_string))); 29 var_dump(bin2hex(iconv('EUC-JP', 'SJIS', $euc_jp_string))); 37 var_dump(bin2hex(iconv('EUC-JP', 'UTF-8', $euc_jp_string))); 44 -- Convert to EUC-JP -- 45 Expected EUC-JP encoded string in base64:
|
H A D | eucjp2iso2022jp.phpt | 2 EUC-JP to ISO-2022-JP 9 /* charset=EUC-JP */ 22 echo hexdump(iconv("EUC-JP", "ISO-2022-JP", $str));
|
/PHP-8.4/ext/standard/tests/strings/ |
H A D | htmlentities08.phpt | 2 htmlentities() test 8 (mbstring / EUC-JP) 5 internal_encoding=EUC-JP 10 mb_internal_encoding('EUC-JP'); 15 EUC-JP
|
H A D | htmlentities13.phpt | 2 htmlentities() test 13 (default_charset / EUC-JP) 5 default_charset=EUC-JP 13 EUC-JP
|