aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QUtil.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-09 11:47:58 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-09 11:47:58 +0100
commit235c89e037d6d9925cf201cadfa9e0df1771212c (patch)
tree577519c074f38219e6965d39a00a9cf97fdf566d /libqpdf/QUtil.cc
parent15248592c9f8f533046c470464cef19911c2b7d4 (diff)
downloadqpdf-235c89e037d6d9925cf201cadfa9e0df1771212c.tar.zst
Fix one more PDF doc encoding error for 10.6 release (fixes #637)release-qpdf-10.6.0
Diffstat (limited to 'libqpdf/QUtil.cc')
-rw-r--r--libqpdf/QUtil.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libqpdf/QUtil.cc b/libqpdf/QUtil.cc
index d0ac13ed..c4aa3afb 100644
--- a/libqpdf/QUtil.cc
+++ b/libqpdf/QUtil.cc
@@ -2492,6 +2492,10 @@ QUtil::pdf_doc_to_utf8(std::string const& val)
{
ch_short = pdf_doc_low_to_unicode[ch - 24];
}
+ else if (ch == 173)
+ {
+ ch_short = 0xfffd;
+ }
result += QUtil::toUTF8(ch_short);
}
return result;