Re: [PHP] URL encode/decode problem

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 16:51:59 +0300, Rosen [EMAIL PROTECTED] wrote: I have follow problem: One form whitch send some text fields to my PHP script. But before send data, the form makes javascript command escape for text fields. The text fields may contain characters +, quotes, etc. The form

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Rosen
It will not work - Javascript function escape() return string as unicode data - something like %u0431%u043E%u044F. And I don't know how to decode these data as normal chars. Greg Donald [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 13 Sep 2004 16:51:59 +0300, Rosen [EMAIL

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 17:21:48 +0300, Rosen [EMAIL PROTECTED] wrote: It will not work - Javascript function escape() return string as unicode data - something like %u0431%u043E%u044F. Well, normally I'd say urldecode() but I don't think it handles unicode, so you may wanna check out the

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Rosen
I changed the JScript to encode data not as unicode - now it code data as %20%2B%20. But when I get data with $_REQUEST[var] - I loose symbol + - with code %2B. Greg Donald [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 13 Sep 2004 17:21:48 +0300, Rosen [EMAIL PROTECTED]

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 18:35:58 +0300, Rosen [EMAIL PROTECTED] wrote: I changed the JScript to encode data not as unicode - now it code data as %20%2B%20. But when I get data with $_REQUEST[var] - I loose symbol + - with code %2B. Can you change it back before you decode it? Maybe with

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Rosen
The sending form works with JavaScript. When enter on some field combination + plus sign and space - JScript encode it - I see it with alert - %2B%20 , but when new window opens on url bar shows +%20 - thath means space only. Greg Donald [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]