473,395 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

euro symbol

MH
Thai may have been asked before but I'm new here....

How can I put the Euro symbol, ? using alt0128 in my page and get it
validated as HTML 4.01 ?

--------------
MH
Jul 20 '05 #1
11 12775
"MH" <no****@nowhere.no> wrote:
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
To transmit special, non-ASCII characters in your newreader simulation,
choose

Tools > Options > Send
Mail Sending Format > Plain Text Settings > Message format MIME
News Sending Format > Plain Text Settings > Message format MIME
Encode text using: None
How can I put the Euro symbol, ? using alt0128 in my page and get it
validated as HTML 4.01 ?


&euro;
http://www.cs.tut.fi/~jkorpela/html/euro.html

--
Top-posting.
What's the most irritating thing on Usenet?
Jul 20 '05 #2
"MH" <no****@nowhere.no> wrote:
Thai may have been asked before
Indeed, a few dozens of times.
but I'm new here....
That's a special reason why you should check the FAQs and archives.
How can I put the Euro symbol, ?
Well, I really suggest using the word "euro", in a suitable form. It's
a start anyway to get the _name_ of the currency right. :-)
using alt0128 in my page and get it
validated as HTML 4.01 ?


Maybe, if you declare a suitable encoding. But that's a wrong way.

For WWW authoring, make your choice between the following:
&euro;

remembering that the latter works somewhat more often. There are other
options too, like using U+20AC as actual character data in a UTF-8
encoded document. When using a UTF-8 capable editor, you could see the
euro symbol itself when editing the HTML document.

More info: http://www.cs.tut.fi/~jkorpela/html/euro.html

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #3
In message <Xn*****************************@193.229.0.31>, Jukka K.
Korpela <jk******@cs.tut.fi> writes
using alt0128 in my page and get it
validated as HTML 4.01 ?


Maybe, if you declare a suitable encoding. But that's a wrong way.


In the particular case of using a Unicode-aware editor on Windows (like
Notepad), that would actually work correctly. That is to say, inserting
the euro symbol with alt+0128 and then saving as UTF-8 results in the
correct UTF-8 byte sequence for U+20AC, not the Windows-1252 character
#128. (Although as you say, you would have to declare a suitable
encoding, i.e. charset=utf-8 in this case.)

Not that that's a recommendation as such, just an observation.

--
George Lund
Jul 20 '05 #4
MH
> &euro;
http://www.cs.tut.fi/~jkorpela/html/euro.html


That was easy, thank you.
--------
MH
Jul 20 '05 #5
MH
> > That may have been asked before
Indeed, a few dozens of times.
but I'm new here....

That's a special reason why you should check the FAQs and archives.


I did, at http://www.htmlhelp.com/faq/ but there was nothing there....
Maybe, if you declare a suitable encoding. But that's a wrong way.

'iso-8859-1' so I thought that would be OK....

Anyway, &euro; did the trick, see.
http://members.home.nl/ghilvers/saab.../9596motor.htm

--------
MH
Jul 20 '05 #6

"Jukka K. Korpela" <jk******@cs.tut.fi> wrote in message
news:Xn*****************************@193.229.0.31. ..
"MH" <no****@nowhere.no> wrote:
Thai may have been asked before


Indeed, a few dozens of times.
but I'm new here....


That's a special reason why you should check the FAQs and archives.
How can I put the Euro symbol, ?


Well, I really suggest using the word "euro", in a suitable form. It's
a start anyway to get the _name_ of the currency right. :-)
using alt0128 in my page and get it
validated as HTML 4.01 ?


Maybe, if you declare a suitable encoding. But that's a wrong way.


I don't know where Alt-0128 came from, but is it wrong if I do Alt-0164 (in
Windows), declare encoding ISO-8859-15, and don't mind that in my editor it
looks like the old generic currency symbol? I thought I had gotten the knack
of these encodings, but maybe I'm still not quite getting it.

Jul 20 '05 #7
Harlan Messinger:
I don't know where Alt-0128 came from, but is it wrong if I do Alt-0164 (in
Windows), declare encoding ISO-8859-15, and don't mind that in my editor it
looks like the old generic currency symbol? I thought I had gotten the knack
of these encodings, but maybe I'm still not quite getting it.


That's formally OK, but I'd advice sticking to safer (more widespread)
encodings, such as ISO-8859-1 or UTF-8. Of those only UTF-8 makes it
possible to enter a euro symbol directly (and only if your text editor
can handle UTF-8).

The safest bet is to use "€" and the encoding "UTF-8".

Even safer (safer than safest) is just writing the word "euro".

--
Bertilo Wennergren <be******@gmx.net> <http://www.bertilow.com>
Jul 20 '05 #8
Bertilo Wennergren <be******@gmx.net> wrote:
Even safer (safer than safest) is just writing the word "euro".


:-)
But &euro; is even understood by Netscape 4.08 (four zero eight).
Jul 20 '05 #9
"Harlan Messinger" <h.*********@comcast.net> wrote:
I don't know where Alt-0128 came from, but is it wrong if I do Alt-0164 (in
Windows), declare encoding ISO-8859-15, and don't mind that in my editor it
looks like the old generic currency symbol?


No version of Netscape 4.x for Macintosh will recognize ISO-8859-15,
but even Netscape 4.08 for Mac will display &euro; as euro sign
or as currency code EUR.
Jul 20 '05 #10
Andreas Prilop:
Bertilo Wennergren <be******@gmx.net> wrote:
Even safer (safer than safest) is just writing the word "euro".

:-)
But &euro; is even understood by Netscape 4.08 (four zero eight).


You never know. By and large a numerical character reference is
probably safer than "&euro;".

On the other hand, if a browser doesn't get it, it might display
"&euro;" as is, which isn't too bad. But if a browser displays
a numerical character reference as is, the result is, let's say,
less than satisfactory.

And then there is of course the factor of authoring ease: "&euro;"
is rather easier to remember and to understand when you're dealing
with the naked horror of the (X)HTML code.

--
Bertilo Wennergren <be******@gmx.net> <http://www.bertilow.com>
Jul 20 '05 #11
On Thu, 18 Dec 2003, Harlan Messinger wrote:

[quoting Jukka]
I don't know where Alt-0128 came from,
Well, Jukka does, and so do I (Windows-1252).
but is it wrong if I do Alt-0164 (in
Windows), declare encoding ISO-8859-15, and don't mind that in my editor it
looks like the old generic currency symbol?
It sounds like a messy way to achieve a sub-optimal result.

iso-8859-15 is all very well in its way, and is getting used quite
widely to encode plain text; but there really is no point in trying to
encode HTML data in iso-8859-15. Browser support for utf-8 has, in my
estimation, been somewhat ahead of support for iso-8859-15 throughout,
and I don't recall seeing an instance where the use of iso-8859-15 for
HTML had brought benefits relative to the various options discussed in
my checklist (see below).

If in fact the only iso-8859-15 character that you want is the euro
sign, then &euro; is now quite widely supported even when the coding
is defined to be iso-8859-1, although somewhat wider coverage can be
achieved by using the correct (i.e unicode) numerical character
reference, as other followups already said.
I thought I had gotten the knack of these encodings, but maybe I'm
still not quite getting it.


I would recommend following Jukka's advice for this issue; if you want
to see a wider review of the options for character representation in
various contexts, then may I suggest starting at my character
checklist http://ppewww.ph.gla.ac.uk/~flavell/charset/checklist and
following pointers to any more-detailed issues that take your
interest.

Jul 20 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: VK | last post by:
Hello All I am writing a string from the database into a text file which contains "Euro" symbol . I have tried using iconv() and utf_encode and mb_convert_encoding() functions to convert the...
4
by: Robert Zierhofer | last post by:
hi there, it seems as if i can´t convert the euro and pound sign to their html equivalents. i tried eregi_replace("€", "&euro;", $haystack); eregi_replace("£", "&pound;", $haystack); as...
1
by: Kevin | last post by:
Hi, I want to check that a string entered via a from contains the only cdertain characters including the Euro currency symbol using a reg exp in PHP. I've set my web page to use...
7
by: flm | last post by:
I've got an XML document that contains euro signs and looks like : <?xml version="1.0" encoding="utf-8"?> <merchant id="52"> <product offerid="03543068131" deliverycost="6,90 €" /> ....
18
by: gabriel | last post by:
greetings, I am currently working on a website where I need to print the Euro symbol and some "oe" like in "oeuvre". If I choose this : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
2
by: tilmann | last post by:
We are using ASCII-Tablespaces with the Codepage 819 on z/OS. We're now having a problem with the EURO symbol. The data is inserted from a Windows-Client, running Codepage 1252. The Euro symbol is...
5
by: SalamElias | last post by:
I followed instructions in MSDN help articles and wrotethe folowing code in order to display numeric numbers with Euro symbol as follows : ---------------------------- Dim OutString As = "" Dim...
8
by: Max | last post by:
My client has decided to use the Euro for the entire web site. Is there an easy way to get my ASP.NET app to format currency to Euro instead of US-dollar? Right now it's just reading the server...
7
by: Robertu | last post by:
Hi at all I'ld want inserrt into my emails body the ? euro symbol therefore I wrote the header of my emails like : $headers="From: $mail_from\n\r"; $headers.='X-Mailer: PHP/' ....
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.