View Full Version : using ISO-8859-15

Mar 16th, 2005, 01:00 PM
with ISO-8859-15 comes the euro symbol

do you think that strating each xhtml page with

<?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">

<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

Mar 16th, 2005, 01:04 PM
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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<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

Mar 16th, 2005, 01:18 PM
The euro symbol exists in iso-8859-1 - it's hex entity 8364 [€]

Mar 16th, 2005, 01:27 PM
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 ?

Mar 16th, 2005, 03:35 PM
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.

Mar 16th, 2005, 04:24 PM
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

Mar 16th, 2005, 04:41 PM
&#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:

AddType text/html;charset=utf-8 .html

Mar 16th, 2005, 04:48 PM
but with utf-8 all the accents are lost

i am on windows and using aspx pages

Mar 16th, 2005, 04:54 PM
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.

Mar 16th, 2005, 05:20 PM
yes just for euro writting &#8364 is ok

but with utf-8 it is not anymore readable

Mar 17th, 2005, 02:53 AM
well then, isn't iso-8859-1 what you originally wanted to use? in which case, is that problem the sorted?

Mar 17th, 2005, 04:00 AM
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

Mar 17th, 2005, 12:38 PM

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

Mar 17th, 2005, 02:01 PM
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?

Mar 17th, 2005, 02:13 PM
i just look for opera 7 ie 6 and the last mozilla

Mar 17th, 2005, 02:15 PM
k sorry didn't see the "ie 6" part in there