Skip to main content
Known Participant
February 21, 2010
質問

Unicode syntax

  • February 21, 2010
  • 返信数 1.
  • 701 ビュー

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

このトピックへの返信は締め切られました。

返信数 1

Adobe Employee
February 22, 2010

Try this:

labelID.text='\uF0A8';

- robin

FTQuest作成者
Known Participant
February 22, 2010

Thank you, Robin.

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

Thank you anyway.

FTQuest

Participating Frequently
February 22, 2010

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