Can't display trademark symbol in javascript and aspx

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mrwoopey

    Can't display trademark symbol in javascript and aspx

    Hi,

    On my site I have "SomeProduc t™", a name with the trademark symbol, in
    a javascript menu. When the page (js) was refered in classic asp it
    showed the trademark symbol. Now the page is aspx (.net) and the
    traemark symbol displays as a "?".

    I used String.fromChar Code(153) to display the "™", but it displays a
    box.

    How do you display the TM in javascript and .net?

    Thanks,

    Phin
  • bruce barker

    #2
    Re: Can't display trademark symbol in javascript and aspx

    <script>
    document.write( "SomeProduct&tr ade;");
    </script>

    "mrwoopey" <mrwoopey@yahoo .com> wrote in message
    news:e48ab325.0 306301454.7e819 cc6@posting.goo gle.com...[color=blue]
    > Hi,
    >
    > On my site I have "SomeProduc tT", a name with the trademark symbol, in
    > a javascript menu. When the page (js) was refered in classic asp it
    > showed the trademark symbol. Now the page is aspx (.net) and the
    > traemark symbol displays as a "?".
    >
    > I used String.fromChar Code(153) to display the "T", but it displays a
    > box.
    >
    > How do you display the TM in javascript and .net?
    >
    > Thanks,
    >
    > Phin[/color]


    Comment

    • Douglas Crockford

      #3
      Re: Can't display trademark symbol in javascript and aspx

      > On my site I have "SomeProduc tT", a name with the trademark symbol, in[color=blue]
      > a javascript menu. When the page (js) was refered in classic asp it
      > showed the trademark symbol. Now the page is aspx (.net) and the
      > traemark symbol displays as a "?".
      >
      > I used String.fromChar Code(153) to display the "T", but it displays a
      > box.[/color]

      tm = '\u2122';
      r = '\u00AE';

      That is the JavaScsript representation of Unicode characters. The client machine
      still needs to have adequate fonts installed.



      Comment

      Working...