summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-op-run.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-08-25 12:44:13 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-08-30 16:55:25 +0200
commit85ee87997e3ee4eb579084f92d109b9b78dcf9c7 (patch)
tree25bf20b8d2d5acf7a4ff61c52fdd41528f48da6d /source/pdf/pdf-op-run.c
parentbf32163059811c822c46e2e17142f517cf9a0bac (diff)
downloadmupdf-85ee87997e3ee4eb579084f92d109b9b78dcf9c7.tar.xz
Use U+FFFD instead of '?' for bad encodings in text extraction.
Diffstat (limited to 'source/pdf/pdf-op-run.c')
-rw-r--r--source/pdf/pdf-op-run.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-op-run.c b/source/pdf/pdf-op-run.c
index 96084cdf..aad0aebf 100644
--- a/source/pdf/pdf-op-run.c
+++ b/source/pdf/pdf-op-run.c
@@ -902,7 +902,7 @@ pdf_show_char(fz_context *ctx, pdf_run_processor *pr, int cid)
}
if (ucslen == 0 || (ucslen == 1 && ucsbuf[0] == 0))
{
- ucsbuf[0] = '?';
+ ucsbuf[0] = 0xFFFD;
ucslen = 1;
}