6 Replies Latest reply on Jun 5, 2009 3:19 AM by Rajat Sahni

    Problem showing Trademark ™ symbol using ascii code in Flex 3

    Rajat Sahni

      I am facing problem in displaying trademark symbol (™) using ascii codes(it is showing square symbol). I have ascii code stored in the database for trademark symbol(ascii code

      "™"

       

      ). So I can't use Hexa code instead of ascii code. But using ascii code I am able to show copyright symbol. Following is the sample code :

       

      <?xml version="1.0"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
          <mx:Script>
              var trademarkSymbol = "\u2122";
              var trademarkSymbol1 = "&#153;";
              var copyrightSymbol = "\u00A9";
              var copyrightSymbol1 = "&#169;";
          </mx:Script>
          
          <mx:Label text="Macromedia™"/>
          <mx:Label text="Macromedia{trademarkSymbol}"/>
          <mx:Label text="Macromedia{trademarkSymbol1}"/>      \\ problem  code
          <mx:Label text="Macromedia©"/>
          <mx:Label text="Macromedia{copyrightSymbol}"/>
          <mx:Label text="Macromedia{copyrightSymbol1}"/>
      </mx:Application>

       

      Please suggest some solution.

       

      Regards

      Rajat Sahni