1--TEST--
2htmlentities() test 5 (mbstring / cp1252)
3--INI--
4output_handler=
5internal_encoding=cp1252
6--SKIPIF--
7<?php
8    extension_loaded("mbstring") or die("skip mbstring not available\n");
9--FILE--
10<?php
11    print mb_internal_encoding()."\n";
12    var_dump(htmlentities("\x82\x86\x99\x9f", ENT_QUOTES, ''));
13    var_dump(htmlentities("\x80\xa2\xa3\xa4\xa5", ENT_QUOTES, ''));
14?>
15--EXPECT--
16Windows-1252
17string(28) "&sbquo;&dagger;&trade;&Yuml;"
18string(32) "&euro;&cent;&pound;&curren;&yen;"
19