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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
John Rackham
2007-Apr-10 19:46 UTC
Re: displaying euro sign? browser displays as question mark
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Andrew Stewart
2007-Apr-13 11:23 UTC
Re: displaying euro sign? browser displays as question mark
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 Stewart --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Andrew Stewart 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 Stewartso 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Andrew Stewart
2007-Apr-14 14:27 UTC
Re: displaying euro sign? browser displays as question mark
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: http://www.cs.sfu.ca/~ggbaker/reference/characters/ Regards, Andy Stewart --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Andrew Stewart 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: > > http://www.cs.sfu.ca/~ggbaker/reference/characters/ > > Regards, > Andy Stewartthe € did the trick, but i will definitley check out that link as well. thanks Andy, Joe -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---