dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: [RESOLVED] Display high ascii characters

  1. #1
    Join Date
    Sep 2008
    Location
    Jackson MS
    Posts
    563

    resolved [RESOLVED] Display high ascii characters

    When I try to display the registered trademark symbol, I get the letter i with two dots instead of one, an upside down ?, and 1/2 in one symbol. I get something similar when I try to display the dagger/cross symbol and copyright. How can I correct this?

    Code:
    <a href="http://www.sample.com/">ComposerŪ</a>
    The symbol is right of top symbol on this page.

    TIA

  2. #2
    Join Date
    Dec 2005
    Location
    TX
    Posts
    7,913
    It looks like you have not defined the character set to be used.
    Try:
    Code:
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8" />
    There a other character sets to consider, but that should be the one if you are using english.

  3. #3
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    5,391
    Usually the HTML character assignment to things like &trade; &copy; &reg;will result in the appropriate character in the HTML being displayed. http://www.ascii.cl/htmlcodes.htm

    Also... stop using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> and use <!DOCTYPE html> HTML4 is dead, its now HTML5.
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  4. #4
    Join Date
    Sep 2008
    Location
    Jackson MS
    Posts
    563
    Thank you gentlemen, those ideas performed as advertised.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center