From 4954db42daef437d757a7cacdea7506c53606d6e Mon Sep 17 00:00:00 2001 From: Martin Gieseking Date: Mon, 7 Oct 2024 16:37:56 +0200 Subject: [PATCH] PDF handler: consider entities in 'unicode' attributes (fixes #257) --- src/PDFHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PDFHandler.cpp b/src/PDFHandler.cpp index f5a303d2..c35b12be 100644 --- a/src/PDFHandler.cpp +++ b/src/PDFHandler.cpp @@ -684,7 +684,7 @@ void PDFHandler::doFillText (XMLElement *trcFillTextElement) { // determine code point of current character string utf8; if (charElement->hasAttribute("unicode")) - utf8 = parse_attr_value(charElement, "unicode"); + utf8 = to_utf8(parse_attr_value(charElement, "unicode")); if (utf8.empty()) utf8 = compose_utf8_char(charElement, glyph); if (glyph == 0 || utf8.empty())