Posts Tagged ‘escape’

Escaping a Plus in Javascript

Friday, September 19th, 2008

I got stuck trying to send a string that contained a “+” via Javascript to a Flash component. Using “escape()” didn’t help as it continued to come through as a space. The workaround I discovered is to use “encodeURIComponent()” instead.