aboutsummaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-01-23 23:58:23 +0100
committerJay Berkenbilt <ejb@ql.org>2021-01-24 09:27:28 +0100
commit04edfe9fade7e77342f5e4fe694ee071554a119c (patch)
treee198ad6dd5d6e4759728c333363898d41690cf6e /ChangeLog
parent63e5cb533de0567612ef5ab373d02f90880a8653 (diff)
downloadqpdf-04edfe9fade7e77342f5e4fe694ee071554a119c.tar.zst
QPDFObjectHandle::newUnicodeString to uses UTF-16 only when needed
Use the first of ASCII, PDFDocEncoding, or UTF-16 that is capable of encoding the string.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog12
1 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 49ae1882..4b0a238a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2021-01-23 Jay Berkenbilt <ejb@ql.org>
+
+ * Change behavior of QPDFObjectHandle::newUnicodeString so that it
+ encodes ASCII or PDFDocEncoding if those encodings will support
+ all the characters in the string, resorting to UTF-16 only if the
+ other encodings are insufficient. This is a cleaner implementation
+ of the intention of encoding strings for use outside of contents
+ and results in fewer instances of ASCII strings being needlessly
+ encoded as UTF-16. This change may cause qpdf to generate
+ different output from the same input when form field values are
+ set using methods from QPDFFormFieldObjectHelper.
+
2021-01-16 Jay Berkenbilt <ejb@ql.org>
* Add new constructors for QPDFNameTreeObjectHelper and