1--TEST--
2Bug #20934 (htmlspecialchars returns latin1 from UTF-8)
3--FILE--
4<?php
5$str = "\xc3\xa0\xc3\xa1";
6echo bin2hex($str), "\n";
7echo bin2hex(htmlspecialchars($str, ENT_COMPAT, "UTF-8")), "\n";
8?>
9--EXPECTF--
10c3a0c3a1
11c3a0c3a1
12