Thanks for the reply, however in ruby the ! essentially makes the gsub execute on itself, so
french_name = french_name.gsub(/é/, 'é')
is the same as
french_name.gsub!(/é/, 'é')
Thanks though :)
Hi
I have an application which needs to take utf-8 encoded data from a database which includes French, and replace any special characters (ie. é) with their HTML representations.
So for that example should
french_name.gsub!(/é/, 'é') be doing the trick? I've spent a while trying to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.