Lines Matching refs:EUC
2 Exhaustive test of verification and conversion of EUC-TW text
16 readConversionTable(__DIR__ . '/data/EUC-TW.txt', $toUnicode, $fromUnicode);
19 testAllValidChars($toUnicode, 'EUC-TW', 'UTF-16BE', false);
20 testAllValidChars($fromUnicode, 'UTF-16BE', 'EUC-TW', false);
21 testAllInvalidChars($invalid, $toUnicode, 'EUC-TW', 'UTF-16BE', "\x00%");
22 testTruncatedChars($truncated, 'EUC-TW', 'UTF-16BE', "\x00%");
23 echo "Tested EUC-TW -> UTF-16BE\n";
26 convertAllInvalidChars($invalid, $fromUnicode, 'UTF-16BE', 'EUC-TW', '%');
27 echo "Tested UTF-16BE -> EUC-TW\n";
31 convertInvalidString("\x80", "%", "EUC-TW", "UTF-8");
32 convertInvalidString("\x8E\x20", "%", "EUC-TW", "UTF-8");
33 convertInvalidString("\x8E\xA1\x20", "%", "EUC-TW", "UTF-8");
34 convertInvalidString("\x8E\xA1\xA1\x20", "%", "EUC-TW", "UTF-8");
35 convertInvalidString("\x8E\xA2\xA3\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
44 Tested UTF-16BE -> EUC-TW