# Escape, unescape, encodeURI, decodeURI neither one does the trick?

**URL:** https://forum.kirupa.com/t/escape-unescape-encodeuri-decodeuri-neither-one-does-the-trick/271217
**Category:** Uncategorized
**Created:** [September 19, 2008, 8:05pm UTC](https://forum.kirupa.com/t/escape-unescape-encodeuri-decodeuri-neither-one-does-the-trick/271217 "2008-09-19T20:05:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![keitai](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@keitai](https://forum.kirupa.com/u/keitai)
#### Post date: [September 19, 2008, 8:05pm UTC](https://forum.kirupa.com/t/escape-unescape-encodeuri-decodeuri-neither-one-does-the-trick/271217/1 "2008-09-19T20:05:16Z")

</div>

to read this embedded flash variable

```auto

<embed src='testmap.swf?aMapPoints=ivg|Hs}cc@sCzDeKzI]`EcBJg@hGcA~Ie@|SLdDn@fM~A`VFPeCbAoApC}@B_H{Kg@rDw@~EsAhGo@`Da@~Ga@fFqAd@aCxAm@HsC{@}BIeDTiAv@VjBJlBSnBe@lAGbASnBq@d@eA]u@j@}Aw@y@{C\\kAt@Yr@}A`AiAu@}Ci@sD~@_Ab@jAhBCvAw@hBsDjB}AhEsF~BeJdDaM`BaBfFaCnGmE`EaDaAaTPkJv@iLhAiK`AuCvAI|DoDnIcJ

```

somehow the characters are rewritten

When i use swfobject and flashvars it does work. But i need to use the embed method ☹

in testmap.swf(AS 3) i have

```auto

var flashVars:Object = LoaderInfo(this.root.loaderInfo).parameters;

  var encodedPoints:String = flashVars.aMapPoints ? flashVars.aMapPoints : "ivg|Hs}cc@sCzDeKzI]`EcBJg@hGcA~Ie@|SLdDn@fM~A`VFPeCbAoApC}@B_H{Kg@rDw@~EsAhGo@`Da@~Ga@fFqAd@aCxAm@HsC{@}BIeDTiAv@VjBJlBSnBe@lAGbASnBq@d@eA]u@j@}Aw@y@{C\\kAt@Yr@}A`AiAu@}Ci@sD~@_Ab@jAhBCvAw@hBsDjB}AhEsF~BeJdDaM`BaBfFaCnGmE`EaDaAaTPkJv@iLhAiK`AuCvAI|DoDnIcJ";

```

Now when i test without the aMapPoints as external embedded flash variable and my .swf use the hardcoded string it works, that is just

```auto

<embed src='testmap.swf

```

I bet some characters are being rewritten, or escaped in flash but how do i fix this?
