Skip to main content
Participant
November 26, 2019
Question

charCode() expression Cheat Sheet?

  • November 26, 2019
  • 1 reply
  • 2168 views

So i see that many of the AE charCodes match ASCII code but some are totally different.

 

i'm making a Mogrt that uses charCode to read a Source text in one comp that then to make layers in another comp turn there opacity to 100 if the index matches the charCode.

 

So i have it all sorted i just wonder if there is a reference list of key strokes and the cooresponding decimal number generated by charCode

 

something like the below link but not all of these match AE. For example Apostrophe Key is 39 in ASCII and 8216 in AE expression charCode

 

https://www.extron.com/product/files/helpfiles/GC3/View_ASCII_Chart.htm

This topic has been closed for replies.

1 reply

Martin_Ritter
Legend
November 26, 2019

charCode() returns Unicode, and not ASCII.

 

*Martin

CM_NickAuthor
Participant
November 26, 2019

Either way the Apostrophe in unicode isn't 8219

Tomas Sinkunas
Legend
November 26, 2019

89 is Straight single apostrophe, and 8216 is Opening single apostrophe - the later being a rich text thingy, a smark quote.