问题
I have the following unicode for a char:
0x023D2A
How do I display it using:
textField.text = ???;
I have have the name of the character. Can I reference it by name?
回答1:
Try this:
textField.text = String.fromCharCode(0x023D2A)
回答2:
textField.text = "Adobe\u00ae" should give you "Adobe®". Replace your Unicode as required. (Note: I don't have Flash with me where I am; I am posting the above untested.)
回答3:
Tested whybird's syntax: it works. You can use \u plus the unicode value in hex inside the string.
来源:https://stackoverflow.com/questions/2405618/display-unicode-character-in-actionscript