Annotation of embedaddon/php/ext/mbstring/tests/zend_multibyte-05.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: zend multibyte (5)
3: --SKIPIF--
4: --INI--
1.1.1.2 ! misho 5: zend.multibyte=On
! 6: zend.script_encoding=EUC-JP
1.1 misho 7: mbstring.internal_encoding=UTF-8
8: --FILE--
9: <?php
10: // forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it
11: // back to UTF-8. There should be only a pair of consecutive bytes that is
12: // valid EUC-encoded character "鴻".
13: var_dump(bin2hex("テスト"));
14: ?>
15: --EXPECT--
16: string(16) "3f3f3fe9b4bb3f3f"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>