php-src/ext/mbstring/tests/zend_multibyte-05.phpt

17 lines
408 B
Plaintext
Raw Normal View History

2008-07-24 22:21:41 +00:00
--TEST--
zend multibyte (5)
2008-07-25 10:48:20 +00:00
--SKIPIF--
2008-07-24 22:21:41 +00:00
--INI--
zend.multibyte=On
zend.script_encoding=EUC-JP
2008-07-24 22:21:41 +00:00
mbstring.internal_encoding=UTF-8
--FILE--
<?php
// forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it
// back to UTF-8. There should be only a pair of consecutive bytes that is
// valid EUC-encoded character "鴻".
var_dump(bin2hex("テスト"));
?>
--EXPECT--
string(16) "3f3f3fe9b4bb3f3f"