Hi folks, I have some user name with Apostrophe, where these names are displayed in view files with some unwanted characters instead of Apostrophe. For example, Bottom''s Profile page is the original string and it is displaying in browser like this. Bottomn’s Profile page. Can any one suggest how to overcome this, or how to identify this special character. FYI, this "Bottom''s Profile page" input is entered from a Mac notebook, where I tried the same from Windows PC and that was displayed properly. Seems in Mac and in some other OS this Apostrophe character is not supported well. Any suggestions are welcome, Thanks in advance. Regards, Veeraa -- Posted via http://www.ruby-forum.com/.
On Jul 2, 7:40 am, Veera Sundaravel <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi folks, > > I have some user name with Apostrophe, where these names are displayed > in view files with some unwanted characters instead of Apostrophe. >It''s probably because your apostropke is actually not a normal apostrophe but one of word''s fancy curly quote things. Fred> For example, > > Bottom''s Profile page is the original string and it is displaying in > browser like this. > > Bottomn’s Profile page. > > Can any one suggest how to overcome this, or how to identify this > special character. > > FYI, this "Bottom''s Profile page" input is entered from a Mac notebook, > where I tried the same from Windows PC and that was displayed properly. > Seems in Mac and in some other OS this Apostrophe character is not > supported well. > > Any suggestions are welcome, Thanks in advance. > > Regards, > Veeraa > -- > Posted viahttp://www.ruby-forum.com/.
Veera Sundaravel wrote: [...]> FYI, this "Bottom''s Profile page" input is entered from a Mac notebook, > where I tried the same from Windows PC and that was displayed properly. > Seems in Mac and in some other OS this Apostrophe character is not > supported well.The character is supported just fine, but you need to make sure that you''re using the correct character encoding for storage and display -- otherwise you''ll have problems like what you''re seeing. Declare UTF-8 encoding in your HTML <head> element and you should be OK.> > Any suggestions are welcome, Thanks in advance. > > Regards, > VeeraaBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.