1--TEST--
2htmlentities() test 16 (mbstring / cp1251)
3--INI--
4output_handler=
5internal_encoding=cp1251
6--SKIPIF--
7<?php
8    extension_loaded("mbstring") or die("skip mbstring not available\n");
9?>
10--FILE--
11<?php
12$str = "\x88\xa9\xf0\xee\xf1\xea\xee\xf8\xed\xfb\xe9";
13var_dump(bin2hex($str), bin2hex(htmlentities($str, ENT_QUOTES, '')));
14var_dump(htmlentities($str, ENT_QUOTES | ENT_HTML5, ''));
15?>
16--EXPECT--
17string(22) "88a9f0eef1eaeef8edfbe9"
18string(42) "266575726f3b26636f70793bf0eef1eaeef8edfbe9"
19string(58) "&euro;&copy;&rcy;&ocy;&scy;&kcy;&ocy;&shcy;&ncy;&ycy;&jcy;"
20