Copy link to clipboard
Copied
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!
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.
Copy link to clipboard
Copied
First, these ar not standare UNICODE values, and I do not believe they are supported by Acrobat.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
And, apparently, Acrobat doesn't support adding characters from any Supplementary Multilingual Plane blocks, only from the Basic Multilingual Plane, up to FFFF. Unless there's another way to insert these characters via Javascript?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
You mean different encoding = different code-points? Like symbols mapped to e.g. "A" (0041), "B" (0042), "C" (0043)?
Copy link to clipboard
Copied
Correct. Like Wingdings, for example.
Copy link to clipboard
Copied
Yes.... It worked 30 years ago and it seems Adobe still forces us to use this workaround. This is in no way meant as a criticism of your idea! only of Adobe and their Unicode problems. I've really been hoping for a current-millenium solution 😄 but in the meantime I de-standardised my font to work within Acrobat's limitations. 😞 I really am grateful for your help though - even if it is confirming what I've suspected, it still saves time and futile effort.