Lines Matching refs:EUC
2 Exhaustive test of verification and conversion of EUC-TW text
15 readConversionTable(__DIR__ . '/data/EUC-TW.txt', $toUnicode, $fromUnicode);
18 testAllValidChars($toUnicode, 'EUC-TW', 'UTF-16BE', false);
19 testAllValidChars($fromUnicode, 'UTF-16BE', 'EUC-TW', false);
20 testAllInvalidChars($invalid, $toUnicode, 'EUC-TW', 'UTF-16BE', "\x00%");
21 testTruncatedChars($truncated, 'EUC-TW', 'UTF-16BE', "\x00%");
22 echo "Tested EUC-TW -> UTF-16BE\n";
25 convertAllInvalidChars($invalid, $fromUnicode, 'UTF-16BE', 'EUC-TW', '%');
26 echo "Tested UTF-16BE -> EUC-TW\n";
30 convertInvalidString("\x80", "%", "EUC-TW", "UTF-8");
31 convertInvalidString("\x8E\x20", "%", "EUC-TW", "UTF-8");
32 convertInvalidString("\x8E\xA1\x20", "%", "EUC-TW", "UTF-8");
33 convertInvalidString("\x8E\xA1\xA1\x20", "%", "EUC-TW", "UTF-8");
34 convertInvalidString("\x8E\xA2\xA3\x20", "%", "EUC-TW", "UTF-8");
35 convertInvalidString("\x8F", "%", "EUC-TW", "UTF-8");
36 convertInvalidString("\xA1\x50", "%", "EUC-TW", "UTF-8");
37 convertInvalidString("\xFD\xCC", "%", "EUC-TW", "UTF-8");
42 Tested EUC-TW -> UTF-16BE
43 Tested UTF-16BE -> EUC-TW