Displaying euro sign? browser displays as question mark

could anyone tell me how to get the euro sign to display properly? it
shows up in my *.rhtml files as <80>500 (should be $500, with the $
replaced with euro sign) when viewed in vi, and displays as a question
mark in browser.

Joe Zz wrote:

could anyone tell me how to get the euro sign to display properly? it
shows up in my *.rhtml files as <80>500 (should be $500, with the $
replaced with euro sign) when viewed in vi, and displays as a question
mark in browser.

Hi Joe!

The html encoding should match the file encoding.
For example if your default encoding for your text editor is ISO-2022-JP
and your html is encoded as UTF-8 your text would be displayed
incorrectly
in the web browser. Most editors and IDEs could be configured to use
whatever
encoding you like.

On 10 Apr 2007, at 15:09, Joe Zz wrote:

could anyone tell me how to get the euro sign to display properly? it
shows up in my *.rhtml files as <80>500 (should be $500, with the $
replaced with euro sign) when viewed in vi, and displays as a question
mark in browser.

How is the Euro symbol written in your rhtml?

If you typed it directly as a single character in your text editor,
you are probably running into a mismatch between the character-
encoding of your text editor and that specified for the HTML.

The safer way is to use a named entity, e.g. €

Regards,
Andy S.

On 13 Apr 2007, at 23:31, Joe Zz wrote:

so i understand, €500 will be read by browsers universally as
(euro
sign)500 i.e $500?

Yes.

what i did was simply copy/paste then find/replace
using a symbol from another site. im not a web designer nor even a
rails
developer… network engineering is my thing… so character
encoding is
not really up my alley. apache is our front end and is more my
speed but
i knew that wasn’t causing the problem… im gonna try the named
entity,
wil let you know how it goes.

This article is slightly relevant and may be of interest:

Regards,
Andy S.

Andrew S. wrote:

On 10 Apr 2007, at 15:09, Joe Zz wrote:

could anyone tell me how to get the euro sign to display properly? it
shows up in my *.rhtml files as <80>500 (should be $500, with the $
replaced with euro sign) when viewed in vi, and displays as a question
mark in browser.

How is the Euro symbol written in your rhtml?

If you typed it directly as a single character in your text editor,
you are probably running into a mismatch between the character-
encoding of your text editor and that specified for the HTML.

The safer way is to use a named entity, e.g. €

Regards,
Andy S.

so i understand, €500 will be read by browsers universally as (euro
sign)500 i.e $500? what i did was simply copy/paste then find/replace
using a symbol from another site. im not a web designer nor even a rails
developer… network engineering is my thing… so character encoding is
not really up my alley. apache is our front end and is more my speed but
i knew that wasn’t causing the problem… im gonna try the named entity,
wil let you know how it goes.

thanks much

Andrew S. wrote:

On 13 Apr 2007, at 23:31, Joe Zz wrote:

so i understand, €500 will be read by browsers universally as
(euro
sign)500 i.e $500?

Yes.

what i did was simply copy/paste then find/replace
using a symbol from another site. im not a web designer nor even a
rails
developer… network engineering is my thing… so character
encoding is
not really up my alley. apache is our front end and is more my
speed but
i knew that wasn’t causing the problem… im gonna try the named
entity,
wil let you know how it goes.

This article is slightly relevant and may be of interest:

Commonly Confused Characters

Regards,
Andy S.

the € did the trick, but i will definitley check out that link as
well.

thanks Andy,
Joe