summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poppler/PSOutputDev.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
index 33f3d2f6..9ecfb122 100644
--- a/poppler/PSOutputDev.cc
+++ b/poppler/PSOutputDev.cc
@@ -1578,7 +1578,7 @@ void PSOutputDev::writeHeader(int nPages, const PDFRectangle *mediaBox, const PD
const GooString *pdfCreator = obj1.getString();
if (pdfCreator && !pdfCreator->toStr().empty()) {
creator->append(". PDF Creator: ");
- if (pdfCreator->hasUnicodeMarker()) {
+ if (hasUnicodeByteOrderMark(pdfCreator->toStr())) {
creator->append(TextStringToUtf8(pdfCreator->toStr()));
} else {
creator->append(pdfCreator);