Fixed re-encoding of characters when license is in txt format. Fixes #184

This commit is contained in:
Remy Sharp 2013-03-07 11:55:37 +00:00
parent ce0bfc699c
commit a01ca8a496

View file

@ -138,7 +138,7 @@
if ($format == 'txt') {
$license = array_shift(explode('</article>', array_pop(explode('<article>', $license))));
$license = preg_replace('/<[^>]*>/', '', trim($license));
$license = html_entity_decode($license);
$license = html_entity_decode($license, ENT_COMPAT | ENT_HTML401, 'UTF-8');
header('content-type: text/plain; charset=UTF-8');
}