From a01ca8a496365e702f81f0cfb300c0d2f9292fa8 Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Thu, 7 Mar 2013 11:55:37 +0000 Subject: [PATCH] Fixed re-encoding of characters when license is in txt format. Fixes #184 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 906c785e..152d2a7f 100644 --- a/index.php +++ b/index.php @@ -138,7 +138,7 @@ if ($format == 'txt') { $license = array_shift(explode('', array_pop(explode('
', $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'); }