[latex3-commits] [git/LaTeX3-latex3-pdfresources] radiobuttons: correct encoding TU and TM (0cc884f)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Jun 1 22:59:55 CEST 2021


Repository : https://github.com/latex3/pdfresources
On branch  : radiobuttons
Link       : https://github.com/latex3/pdfresources/commit/0cc884f7b31d6767423e5d27c3168165e361b81f

>---------------------------------------------------------------

commit 0cc884f7b31d6767423e5d27c3168165e361b81f
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Jun 1 22:59:55 2021 +0200

    correct encoding TU and TM


>---------------------------------------------------------------

0cc884f7b31d6767423e5d27c3168165e361b81f
 l3pdffield.dtx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/l3pdffield.dtx b/l3pdffield.dtx
index d9544e6..aaa6c6f 100644
--- a/l3pdffield.dtx
+++ b/l3pdffield.dtx
@@ -1290,7 +1290,7 @@
             \pdfdict_remove:nn { l_@@/field }{TU}
           }
           {
-            \pdf_string_from_unicode:nnN {utf8/string}{#1}\l_@@_tmpa_str
+            \pdf_string_from_unicode:nnN {utf16/hex}{#1}\l_@@_tmpa_str
             \pdfdict_put:nnx { l_@@/field }{TU}{\l_@@_tmpa_str}
           }
       }
@@ -1304,7 +1304,7 @@
             \pdfdict_remove:nn { l_@@/field }{TM}
           }
           {
-            \pdf_string_from_unicode:nnN {utf8/string}{#1}\l_@@_tmpa_str
+            \pdf_string_from_unicode:nnN {utf16/hex}{#1}\l_@@_tmpa_str
             \pdfdict_put:nnx { l_@@/field }{TM}{\l_@@_tmpa_str}
           }
       }





More information about the latex3-commits mailing list.