Question about PHP-CGI, Unicode Environment, and $_POST

Question about PHP-CGI, Unicode Environment, and $_POST

am 02.08.2010 07:24:35 von Pierre Fauconnier

Hello comp.php.windows,

What is the environment variable to define, in order to work fine with unicode
environment, and POST method, in CGI mode?

Regards,
Pierre.
--
My program launches the php-cgi.exe via a "CreateProcess" having its
"dwCreationFlags" set to "CREATE_UNICODE_ENVIRONMENT". (I have to use a more
recent compiler - previously there was no problem with its "ancient"
ANSI version.)
The $_GET array is still well initialized - which means that the environment set
by my program is still ok, but now the $_POST array seems pretty bad.
Versions <= 5.3 show the issue - versions above 5.3: not checked.

_________________________ Script ______________________________
As example, a PHP script sends a form containing 3 inputs, then displays the
results via phpinfo.
echo <<






L02;
_________________________ Results ______________________________
Results extracted from phpinfo() with $myMethod = 'POST';
_GET("txtStuCod") 234.56
_GET("keyStuCod") 1
_GET("cmdStuCod") Search
_POST("t") \02\03\04\0.\05\06\0
_________________________ See also ______________________________
The full script [1 KB] http://pigii.sourceforge.net/f/check_get_post.phph
The phpinfo full results [53 KB] http://pigii.sf.net/f/check_get_post.html


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php