View Full Version : using ISO-8859-15
03-16-2005, 12: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" />
or is it better to keep using iso-8859-1 ?
does Opera 7 , Mozilla (last one) and IE 6 recognize this charset ?
03-16-2005, 12: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
03-16-2005, 12:18 PM
The euro symbol exists in iso-8859-1 - it's hex entity 8364 [€]
03-16-2005, 12: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 ?
03-16-2005, 02: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.
03-16-2005, 03: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 ?
03-16-2005, 03:41 PM
€ 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
03-16-2005, 03:48 PM
but with utf-8 all the accents are lost
i am on windows and using aspx pages
03-16-2005, 03: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 €
There's nowt wrong with that is there? It's always worked for me.
03-16-2005, 04:20 PM
yes just for euro writting € is ok
but with utf-8 it is not anymore readable
03-17-2005, 01:53 AM
well then, isn't iso-8859-1 what you originally wanted to use? in which case, is that problem the sorted?
03-17-2005, 03: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
03-17-2005, 11:38 AM
i dont care of other version i just look for opera 7 ie 6 and the last mozilla
then xml declaration works fine
yes brothercake iso works fine i just wanted to know something with the 15
03-17-2005, 01: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?
03-17-2005, 01:13 PM
i just look for opera 7 ie 6 and the last mozilla
03-17-2005, 01:15 PM
k sorry didn't see the "ie 6" part in there