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