1--TEST--
2Bug #20934 (htmlspecialchars returns latin1 from UTF-8)
3--FILE--
4<?php
5$str = utf8_encode("\xe0\xe1");
6var_dump(utf8_decode($str));
7var_dump(utf8_decode(htmlspecialchars($str, ENT_COMPAT, "UTF-8")));
8?>
9--EXPECT--
10string(2) "��"
11string(2) "��"
12