Can't display trademark symbol in javascript and aspx

Discussion in 'ASP .Net' started by mrwoopey, Jun 30, 2003.

  1. mrwoopey

    mrwoopey Guest

    Hi,

    On my site I have "SomeProductâ„¢", 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.fromCharCode(153) to display the "â„¢", but it displays a
    box.

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

    Thanks,

    Phin
    mrwoopey, Jun 30, 2003
    #1
    1. Advertising

  2. > On my site I have "SomeProductT", 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.fromCharCode(153) to display the "T", but it displays a
    > box.


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

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

    http://www.crockford.com
    Douglas Crockford, Jul 1, 2003
    #2
    1. Advertising

  3. mrwoopey

    bruce barker Guest

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

    "mrwoopey" <> wrote in message
    news:...
    > Hi,
    >
    > On my site I have "SomeProductT", 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.fromCharCode(153) to display the "T", but it displays a
    > box.
    >
    > How do you display the TM in javascript and .net?
    >
    > Thanks,
    >
    > Phin
    bruce barker, Jul 1, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. lareds
    Replies:
    4
    Views:
    1,246
    Tor Iver Wilhelmsen
    Nov 18, 2003
  2. Replies:
    2
    Views:
    3,641
  3. Brad Tilley
    Replies:
    1
    Views:
    1,171
    Nobody
    Apr 3, 2011
  4. Jonathan Weiss
    Replies:
    2
    Views:
    96
    Jonathan Weiss
    Jul 26, 2007
  5. mrwoopey
    Replies:
    2
    Views:
    184
    bruce barker
    Jul 1, 2003
Loading...

Share This Page