views:

45

answers:

1

Hey guys

I'm having issues using ó in a static string being used in an as3 URL link out.

code: var url:String = "http://www.blahblahblah.pl/show/atomnówki";

output: http://www.blahblahblah.pl/show/atomn%F3wki

I'm sure this is pretty basic but i'm having one of those days.

+1  A: 

Your String has been percent-encoded. This is often done to URLs for the sake of systems that only support US-ASCII, but you also see it when transfering over email or as POST variabes (such as form submissions).

Top-level functions that undo percent-encoding include:

Whichever is appropriate.

Gunslinger47
decodeURI was perfect, thanks
Hornerlas