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

Pierre Fauconnier <[email protected]>
Newsgroups gmane.comp.php.windows
Message-ID <[email protected]>
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
<form name="selStudent" action="${_SERVER['PHP_SELF']}" method="$myMethod">
	<input type="text"	name="txtStuCod"/>
	<input type="hidden"	name="keyStuCod"	value="1"/>
	<input type="submit"	name="cmdStuCod"	value="Search"/>
</form>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.