2 Replies Latest reply on Nov 25, 2008 2:39 PM by Newsgroup_User

    Shockwave to Javascript -> character encoding issue !

    Level 7
      Hi !

      I have resigned from sending messages from JavaScript to Shockwave movie
      as I have found all existing methods unreliable (at worst scenario Flash
      blocker is installed and using localConnection trick with Flash gateway

      But in the consequence, I have to send message (a search string) from
      Shockwave to JavaScript.

      That seems easy with the following Lingo:

      goToNetPage("javascript:void myJSfunction('" & aString & "');")

      But the problem is with encoding possible non-ASCII characters.

      I presume the browser page is using charset=UTF-8.

      Any idea how to properly encode 'aString' so it will preserve non-ASCII
      characters while being transfered to JavaScript?

      It is really urgent!