-
Unicode variables in expressions
Hi,
I’m trying to find a way to count up some numbers using Persian or Arabic numerals. I’m using After Effects CS5.5 on a Mac OS 10.6
For example, the numbers 01234 in English are ۰۱۲۳۴ in Persian.
I’d like to be able to control the value displayed via a slider on a text layer.
Initially I set it up like this in English:
myArray = ['0','1','2','3','4'];
myvalue = Math.round(effect("Slider Control")("Slider"));
text.sourceText = myArray[myvalue];This works fine. But when I try to change it to something like this:
myArray = ['۰','۱','۲','۳','۴'];
myvalue = Math.round(effect("Slider Control")("Slider"));
text.sourceText = myArray[myvalue];The unicode characters get destroyed, and I end up with this:
myArray = ['?','?','?','?','?'];
myvalue = Math.round(effect("Slider Control")("Slider"));
text.sourceText = myArray[myvalue];Is there a way of explicitly stating the unicode values in expressions? I believe the correct values are:
U+0660
U+0661
U+0662
U+0663
U+0664Thanks in advance!
Tom