summaryrefslogtreecommitdiff
path: root/source/html
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-09-23 14:00:02 +0100
committerRobin Watts <robin.watts@artifex.com>2016-09-23 18:03:16 +0100
commit8e6c5ce4b12af165ef6bebd69c65829095e6edd5 (patch)
tree820a96f955671eea57cbded22ac37d6e59c152aa /source/html
parentbb4daf44c8e2f403f48ada061b70abfc8517c09e (diff)
downloadmupdf-8e6c5ce4b12af165ef6bebd69c65829095e6edd5.tar.xz
JNI: Improve string/name encoding handling.
At the moment, when we create java Strings from string or name PDFObjects, we assume they are all in javas not-quite-UTF-but-almost encoding. Here we assume they are in standard PDF format (namely that if they do not start with one of 2 specific BOMs, that they are in PDFDocEncoding). We update the code to convert to unicode, and create strings from that. This has the added side effect of correctly coping with 0 bytes in the middle of string buffers.
Diffstat (limited to 'source/html')
0 files changed, 0 insertions, 0 deletions