1--TEST--
2htmlentities() test 9 (mbstring / Shift_JIS)
3--INI--
4output_handler=
5error_reporting=~E_STRICT
6mbstring.internal_encoding=Shift_JIS
7--SKIPIF--
8<?php
9	extension_loaded("mbstring") or die("skip mbstring not available\n");
10--FILE--
11<?php
12	mb_internal_encoding('Shift_JIS');
13	print mb_internal_encoding()."\n";
14	var_dump(bin2hex(htmlentities("\x81\x41\x81\x42\x81\x43", ENT_QUOTES, '')));
15?>
16===DONE===
17--EXPECT--
18SJIS
19string(12) "814181428143"
20===DONE===
21