Force UTF-8 encoding in htmlspecialchars

This commit is contained in:
Adrien Loison authored and Adrien Loison committed 2019-05-21 19:37:09 +02:00
1 parent 69b0fb9eaf
commit 5ce5a488d1
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ class XLSX implements EscaperInterface
$escapedString = $this->escapeControlCharacters($string);
// @NOTE: Using ENT_QUOTES as XML entities ('<', '>', '&') as well as
// single/double quotes (for XML attributes) need to be encoded.
$escapedString = htmlspecialchars($escapedString, ENT_QUOTES);
$escapedString = htmlspecialchars($escapedString, ENT_QUOTES, 'UTF-8');
return $escapedString;
}