Try this program to display Trademark and Copyright symbol in Flex.
<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”http://www.macromedia.com/2006/mxml”>
<mx:Script>
var trademarkSymbol = “\u2122″;
var copyrightSymbol = “\u00A9″;
</mx:Script>
<mx:Label text=”Macromedia™”/>
<mx:Label text=”Macromedia™”/>
<mx:Label text=”Macromedia{trademarkSymbol}”/>
<mx:Label text=”Macromedia©”/>
<mx:Label text=”Macromedia©”/>
<mx:Label text=”Macromedia{copyrightSymbol}”/>
</mx:Application>
Note that you always have to have 4 hex digits following \u. This isn’t
the case with XML &#x escaping because [...]
Archive for October, 2007
Trademark and Copyright Symbols in Flex
Posted in Flex on October 26, 2007 | Leave a Comment »