3 Replies Latest reply on Jun 6, 2006 1:10 PM by Newsgroup_User

    Reverse the url-encoded process

    Level 7

      Hi there,

      Is it possible to flash rebuild a string that as been url-encoded?

      Thanks,


        • 1. Re: Reverse the url-encoded process
          Level 7
          SteveStall,

          > Is it possible to flash rebuild a string that as been url-encoded?

          You betcha. The escape() function url-encodes strings; the unescape()
          function url-decodes strings.


          David
          stiller (at) quip (dot) net
          Dev essays: http://www.quip.net/blog/
          "Luck is the residue of good design."


          • 2. Re: Reverse the url-encoded process
            Level 7
            Hi David thanks for your reply.



            It seems that my problem is not url-encoded.

            I have a flash with a sendAndLoad vars to a coldfusion file.

            The coldfusion is suppose to return a XML object. Instead it returns a
            String because the XML special characters [ <, >, " ] are converted to
            [&lt;, &gt;, &quot;].



            I think this problem is because you can have a programming language based on
            tags directly written in coldfusion (also a programming language based on
            tags). Like when you write html formatting text in an xml structure. The xml
            structure will assume tags like <br/> as a child Node instead of a tag
            content.



            So I had to make some functions to replace special characters in a string.

            I don't agree with this solution, but it was the only thing I came up with.



            Thanks







            "David Stiller" <stiller-NO-SPAM-@quip.net> wrote in message
            news:e63u3m$oug$1@forums.macromedia.com...
            > SteveStall,
            >
            >> Is it possible to flash rebuild a string that as been url-encoded?
            >
            > You betcha. The escape() function url-encodes strings; the unescape()
            > function url-decodes strings.
            >
            >
            > David
            > stiller (at) quip (dot) net
            > Dev essays: http://www.quip.net/blog/
            > "Luck is the residue of good design."
            >


            • 3. Re: Reverse the url-encoded process
              Level 7
              SteveStall,

              > I think this problem is because you can have a
              > programming language based on tags directly
              > written in coldfusion (also a programming language
              > based on tags).

              > So I had to make some functions to replace
              > special characters in a string.
              > I don't agree with this solution, but it was the only
              > thing I came up with.

              Ah, okay. Well, based on your needs, that may have been the only way to
              go. Glad you solved it.


              David
              stiller (at) quip (dot) net
              Dev essays: http://www.quip.net/blog/
              "Luck is the residue of good design."