12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- --TEST--
- Exhaustive test of verification and conversion of ISO-8859-X text
- --EXTENSIONS--
- mbstring
- --SKIPIF--
- <?php
- if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
- ?>
- --FILE--
- <?php
- include('encoding_tests.inc');
- for ($n = 1; $n <= 16; $n++) {
- if ($n == 11 || $n == 12)
- continue;
- testEncodingFromUTF16ConversionTable(__DIR__ . "/data/8859-$n.txt", "ISO-8859-{$n}");
- }
- // Test "long" illegal character markers
- mb_substitute_character("long");
- convertInvalidString("\xAE", "%", "ISO8859-7", "UTF-8");
- convertInvalidString("\xFF", "%", "ISO8859-8", "UTF-8");
- echo "Done!\n";
- ?>
- --EXPECT--
- Tested ISO-8859-1 -> UTF-16BE
- Tested UTF-16BE -> ISO-8859-1
- Tested ISO-8859-2 -> UTF-16BE
- Tested UTF-16BE -> ISO-8859-2
- Tested ISO-8859-3 -> UTF-16BE
- Tested UTF-16BE -> ISO-8859-3
- Tested ISO-8859-4 -> UTF-16BE
- Tested UTF-16BE -> ISO-8859-4
- Tested ISO-8859-5 -> UTF-16BE
- Tested UTF-16BE -> ISO-8859-5
- Tested ISO-8859-6 -> UTF-16BE
- Tested UTF-16BE -> ISO-8859-6
- Tested ISO-8859-7 -> UTF-16BE
- Tested UTF-16BE -> ISO-8859-7
- Tested ISO-8859-8 -> UTF-16BE
- Tested UTF-16BE -> ISO-8859-8
- Tested ISO-8859-9 -> UTF-16BE
- Tested UTF-16BE -> ISO-8859-9
- Tested ISO-8859-10 -> UTF-16BE
- Tested UTF-16BE -> ISO-8859-10
- Tested ISO-8859-13 -> UTF-16BE
- Tested UTF-16BE -> ISO-8859-13
- Tested ISO-8859-14 -> UTF-16BE
- Tested UTF-16BE -> ISO-8859-14
- Tested ISO-8859-15 -> UTF-16BE
- Tested UTF-16BE -> ISO-8859-15
- Tested ISO-8859-16 -> UTF-16BE
- Tested UTF-16BE -> ISO-8859-16
- Done!
|