Hornerlas
Hornerlas

Reputation: 105

Umlaut and special characters in AS3 string

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.

Upvotes: 1

Views: 1067

Answers (1)

Gunslinger47
Gunslinger47

Reputation: 7061

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.

Upvotes: 3

Related Questions