Skip to main content
Known Participant
November 27, 2024
Answered

special character, acrobat javascript, richText

  • November 27, 2024
  • 1 reply
  • 947 views

I'm trying to insert special characters into a rich textfield via javascript. The characters are from Enclosed Alphanumeric Supplement block, e.g. :

\u1F16D
\u1F16F
\u1F10E

Unfortunately, what I get is e.g. 1F10 + E or just gibberish. The selected font includes these cope-points. I can access these glyphs in a text editor and they show correctly. The rest of the text in the textfield (in a different font and different characters) is inserted correctly. Other, lower, code-points are inserted correctly.

How can I insert these characters?

Thank you for your help!

This topic has been closed for replies.
Correct answer try67

There isn't. But if you have a font that contains these symbols (with a different encoding) then you can use it in your code. And since it's an RTF text field, you can combine it with other text, using different fonts.

1 reply

Thom Parker
Community Expert
Community Expert
November 27, 2024

First, these ar not standare UNICODE values, and I do not believe they are supported by Acrobat. 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Ninna76Author
Known Participant
November 27, 2024

Thank you for your reply. These cope-points have been part of the Unicode Standard for quite some time now.

https://creativecommons.org/2020/03/18/the-unicode-standard-now-includes-cc-license-symbols/

Unless you're referring to the "\u" part, which I have been using successfully with other values.