Skip to main content
Known Participant
Feb 21, 2010 5:38 AM UTC
Question

Unicode syntax

Hi,

I'd like to use a diamond symbol in the text property of s:Label in Script block; i.e. 'labelID.text ='. The Unicode reference for this symbol is 'F0A8'. How do I enter such Unicode?

Thanks,

FTQuest

This topic is closed to new replies. Start a new post to keep the conversation going.

4 replies

Adobe Employee
Feb 22, 2010 4:33 AM UTC

Try this:

labelID.text='\uF0A8';

- robin

Translate
FTQuestAuthor
Known Participant
Feb 22, 2010 6:34 AM UTC

Thank you, Robin.

This syntax is recognized as Unicode, but it renders just an empty square.

Thank you anyway.

FTQuest

Translate
Participating Frequently
Feb 22, 2010 7:00 PM UTC

The empty square probably indicates that whatever font you're using doesn't contain a glyph for that Unicode character.

Gordon Smith

Adobe Flex SDK Team

Translate