Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    New Coder
    Join Date
    Jul 2004
    Location
    france
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts

    using ISO-8859-15

    with ISO-8859-15 comes the euro symbol

    do you think that strating each xhtml page with

    Code:
    <?xml version="1.0" encoding="iso-8859-15"?>
    
    <!doctype html public "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="fr">
    <head>
    
    <meta http-equiv="content-type" content="application/xhtml+xml; charset=iso-8859-15" />
    will work

    or is it better to keep using iso-8859-1 ?

    does Opera 7 , Mozilla (last one) and IE 6 recognize this charset ?


    thank you

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    well i would lose the first line, seeing as how it would make IE go into "quirks" mode, i personally use the character encoding utf-8
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8" />
    netscape doesn't support the lang attribute, and both netscape and IE dont support the xml:lang attribute, and xmlns isn't supported by netscape either

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The euro symbol exists in iso-8859-1 - it's hex entity 8364 [€]
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #4
    New Coder
    Join Date
    Jul 2004
    Location
    france
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok then i keep iso-8859-1
    thank you brothercake



    ---

    _Aerospace_Eng_ I like to keep xml declaration i am used to it
    what do you call "quirks" mode ?

  • #5
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Quote Originally Posted by brothercake
    The euro symbol exists in iso-8859-1 - it's hex entity 8364 [€]
    Not at all. [iso8859-1] doesn't contain the Euro currency symbol. This can easily be realised when you know the fact that it's a fixed-length 8-bit encoding- it only contains characters up to 255, so 8364 can't possibly be in it.

    The [Windows-1252] encoding, on the other hand, is a modification of [iso8859-1] and later versions contains the Euro currency symbol at code point x80 (128). The [MacRoman] character set which is almost [us-ascii] compatible replaced the earlier generic currency symbol with the Euro currency symbol at code point xDB (219).

    But character references in XML and HTML4.01 are references to Unicode code points, and Unicode contains the Euro currency symbol. By the way, it's at x20AC (8364), and not at hex 8364 (which would place it at decimal 33636). Or, as the canonical way to write unicode code point references is, U+20AC.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #6
    New Coder
    Join Date
    Jul 2004
    Location
    france
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts
    arrrrrrrrrrrg !! :-(((( lioran

    at the end what should i do ? :-)

    i don't know if you have euros in Sweden .. if so what is your encoding for it ?

    thank you

  • #7
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    &#x20AC; should work independent of what encoding you use for the document.

    However, if you use [utf-8] you can include it directly in the document.
    Likewise if you use [iso8859-15]. In both of those cases, you need to make sure the server serves it up as the character encoding of choice, and that you actually save the file using that encoding. (The text editor you use must be capable of saving in chosen encoding.)

    [utf-8] is the new standard for 8-bit encodings, so I'd recommend utf-8. If you're on an apache server, you might want to add something like this to your .htaccess file:
    Code:
    AddType text/html;charset=utf-8 .html
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #8
    New Coder
    Join Date
    Jul 2004
    Location
    france
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts
    but with utf-8 all the accents are lost

    i am on windows and using aspx pages

  • #9
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I stand corrected ... but the point I really meant to make is that you can use the euro symbol in iso-8859-1 - with the entity &#8364

    There's nowt wrong with that is there? It's always worked for me.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #10
    New Coder
    Join Date
    Jul 2004
    Location
    france
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes just for euro writting &#8364 is ok

    but with utf-8 it is not anymore readable

  • #11
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well then, isn't iso-8859-1 what you originally wanted to use? in which case, is that problem the sorted?
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #12
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    quirks mode, some items wont display properly, if you were to use margin:auto; in the css it wouldn't work correctly in internet explorer, at least version 6 and the rest below that i believe

  • #13
    New Coder
    Join Date
    Jul 2004
    Location
    france
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok

    i dont care of other version i just look for opera 7 ie 6 and the last mozilla
    then xml declaration works fine

    thank you

    yes brothercake iso works fine i just wanted to know something with the 15

  • #14
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    so you dont care about the IE users when there are still quite a number of them out there? Interesting... so have u viewed your page in Internet Explorer 6.02/PC? Just to see how it looks?

  • #15
    New Coder
    Join Date
    Jul 2004
    Location
    france
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i just look for opera 7 ie 6 and the last mozilla


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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