|
Posted by Toby A Inkster on 05/24/07 10:25
Mohawk Mawk wrote:
> the euro symbols in html are
> € i think thats the asci code
No -- the Euro symbol isn't in ASCII, which is a very old character set
designed a long time before the Euro was ever even imagined! The euro is
available in ISO-8859-15 and ISO-8859-16, as well as any Unicode-based
character sets like UTF-8, UTF-16 and UTF-32.
HTML character references, like € are always Unicode codepoints
("codepoint" is Unicode-speak for the numeric value associated with each
character), which is why, no matter which encoding you're using in HTML or
XML, the full range of Unicode characters are always available via
character references.
As the original poster is using UTF-8 though, he doesn't need to resort to
using a numeric character reference -- he can just type € in directly.
Some fonts however, don't include a Euro symbol, so a square or question
mark may be substituted instead. HTML rendering engines are *supposed* to
switch font when they realise that the current font is missing a character
that's being used. However, they don't always get this right. Internet
Explorer in particular can be pretty rubbish at this -- and a lot of
e-mail clients (Outlook, Eudora, etc) use Internet Explorer as their
rendering engine.
You could try using a touch of CSS to persuade Internet Explorer to use
Arial or Times New Roman, both of which have a fairly large set of
available characters. e.g.:
<span style="font-family:Arial">€</span>0,99
The other possibility is that you're not sending correctly encoded UTF-8.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 89 days, 17:56.]
The Great Wi-Fi Controversy
http://tobyinkster.co.uk/blog/2007/05/22/wifi-scare/
Navigation:
[Reply to this message]
|