you must use encodeURI() in LZX, and urldecode() in PHP, in as3(swf9/swf10),

you can see the sample app in the "swf9 version" section of
http://www.openlaszlo-ason.com/doku.php/phpgetpost


--
[email protected]
Laszlo Japan


2009/12/9 Ono Keiji <[email protected]>:
> Hi,
>
> I have just get big issue that 'POST" and "GET" dose not work well in the
> case of compiling with swf9/10. It get occur using multibyte text data to
> send using those interface.
> I wonder i miss any information about the attention when using swf9 over.
> Any workaround?
>
> simple test case
> test.lzx
> <?xml version="1.0" encoding="utf-8"?>
> <canvas debug="true">
>   <dataset name="d" src="http://<server>/test.php" querystring="post">
>
>   <simplelayout/>
>   <edittext name="ed"></edittext>
>   <button>post
>      <handler name="onclick">
>        var dp = canvas.datasets.d;
>        dp.setQueryString({aaa: ed.getText()} );
>        dp.doRequest();
>      </handler>
>   </button>
> </canvas>
>
> test.php
> <?php
> $s = $_POST['aaa'];
> //$s = $_GET['aaa'];
>
> error_log( "$s\n", 3, "/tmp/php_error.log" );
> ?>
>
> When input "ああああ”(this is jp, and the mean is 'AHAHAHAHA' :^)
> The php program get "ã ‚ã ‚ã ‚".
>
> When it compile with swf8, works fine.
>
> thx
>
>
> --
> ------------------------------------------
> Ono Keiji
> [email protected]
> ------------------------------------------
>
>
>

Reply via email to