How to get unicode value of a selected char?
Hi All
How to get unicode value of a selected char?
Hi All
How to get unicode value of a selected char?
The contents property of an InDesign object "Character" is a plain Unicode string. Accessing the individual characters is a basic javascript operation, and a google gives this as a good first result: http://www.w3schools.com/jsref/jsref_charCodeAt.asp
Therefore, the unicode value of a selected char is
app.selection[0].characters[0].contents.charCodeAt(0)
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.