SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Codes for currency signs ?

    Does anyone know the correct html code for the euro sign please ?

    Is it :

    €

    Or :



    None of the above ?

    I've got to do a few other currency signs as well, does anyone know a definitive place on the web to find out the correct codes for all currency signs please ?

    Any help appreciated.

    Dez.

  2. #2
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dez
    €

    Or :

    Any of them, and € and € will do aswell.
    Quote Originally Posted by Dez
    I've got to do a few other currency signs as well, does anyone know a definitive place on the web to find out the correct codes for all currency signs please ?
    Here you go: Currency Symbols Range: 20A020CF (PDF). The ones available as HTML entity references can be found in the HTML spec.
    Simon Pieters

  3. #3
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question

    Many thanks for the quick help Simon. How comes there's so many codes for the same currency ?

    This may sound a bit daft, but are there any codes that are 'more correct' for particular signs than the others please ? It just seems to be so many codes for the same thing ?

    The helps appreciated.

    Dez.

  4. #4
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well. It's just different ways to represent the same character.

    If you use XHTML you should avoid using entity references (€). If you use iso-8859-1 then you can't use the character directly (), because that encoding doesn't cover the euro sign. If you want to be compatible with old HTML browsers (e.g. IE4) you shouldn't use hexadecimal character references (€).

    If you use an encoding that does cover the character, using the character directly is shortest in terms of bytes. But other then that it's just personal preference I guess.
    Simon Pieters


Bookmarks

Posting Permissions

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