[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Escaping international characters

Hal E. Fulton

7/25/2006 5:58:00 AM

Alexander Lamb wrote:
> Hello,
>
> This seems rather simple but it doesn't work as expected:
>
> I have a string like "'école" I would like to get "école".
>
> I tried:
>
> @aName = CGI.escapeHTML(myString)
>
> but it doesn't work?
>
> (I am not doing a rails application, just a simple script)

My fear is that escapeHTML simply isn't that smart.

You might have to hand-code those cases. If it comes to that,
please share it with everyone else. Maybe it could even
find its way back into the lib.

Where is James Bond when you need him? He was always good
at escaping international characters.


Hal