sent utf-8 with content type to allow for unicode characters in plain text version

This commit is contained in:
Remy Sharp 2012-01-10 08:16:45 +00:00
parent 5fa4d32f4a
commit fc5ed8f7fc

View file

@ -139,7 +139,7 @@
$license = array_shift(explode('</article>', array_pop(explode('<article>', $license))));
$license = preg_replace('/<[^>]*>/', '', trim($license));
$license = html_entity_decode($license);
header('content-type: text/plain');
header('content-type: text/plain; charset=UTF-8');
}
echo $license;