Skip to content
Snippets Groups Projects
Commit 0dcc9317 authored by Jared Hancock's avatar Jared Hancock
Browse files

pdf: Fix invalid UTF-8 characters error message

parent 9d5aa524
No related branches found
No related tags found
No related merge requests found
......@@ -31136,6 +31136,7 @@ function purify_utf8($html,$lo=true) {
function purify_utf8_text($txt) {
// For TEXT
// Make sure UTF-8 string of characters
if ($txt === null) $txt = '';
if (!$this->is_utf8($txt)) { $this->Error("Text contains invalid UTF-8 character(s)"); }
$txt = preg_replace("/\r/", "", $txt );
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment