1--TEST--
2htmlentities() test 9 (mbstring / Shift_JIS)
3--INI--
4output_handler=
5--SKIPIF--
6<?php
7	extension_loaded("mbstring") or die("skip mbstring not available\n");
8	mb_internal_encoding('Shift_JIS');
9	$php_errormsg = NULL;
10	@htmlentities("\x81\x41\x81\x42\x81\x43", ENT_QUOTES, '');
11	if ($php_errormsg) {
12		die("skip Shift_JIS chracter set is not supported on this platform.\n");
13	}
14?>
15--FILE--
16<?php
17	mb_internal_encoding('Shift_JIS');
18	print mb_internal_encoding()."\n";
19	var_dump(bin2hex(htmlentities("\x81\x41\x81\x42\x81\x43", ENT_QUOTES, '')));
20?>
21===DONE===
22--EXPECT--
23SJIS
24string(12) "814181428143"
25===DONE===
26