How can I encode a string according to RFC 2396, using Actionscript/Flex 3?
Thanks in advance!
Similar to Javascript, in Actionscript you can use the following top level (or global) functions to encode/decode URI's:
encodeUri() encodeURIComponent() decodeURI() and decodeURIComponent()
encodeUri()
encodeURIComponent()
decodeURI()
decodeURIComponent()
As well as:
escape() unescape()
escape()
unescape()
There are subtle differences between these 6 global functions, check the links to the docs above. Here's an article that discusses the difference in Javascript, but it should be the same for Actionscript.
Similar to Javascript, in Actionscript you can use the following top level (or global) functions to encode/decode URI's:
encodeUri()encodeURIComponent()decodeURI()anddecodeURIComponent()As well as:
escape()unescape()There are subtle differences between these 6 global functions, check the links to the docs above. Here's an article that discusses the difference in Javascript, but it should be the same for Actionscript.