Hi,
Since I seem to be the only one having problems with utf8 forms, I guess
the problem is me not expecting the correct things to happen.
The following is a simple html test page with a simple form. I expect the
result to be utf-8 but it's not (until I comment out the Encode::_utf8_on()
line).
Is this normal ? Do you have the same behaviour ? Can someone explain (or point
me
to a doc explaining) the confusion I'm making ?
Thanks for your help,
<!doctype html>
<html><head>
[-
use utf8;
use Encode;
# Encode::_utf8_on($fdat{$_}) for keys %fdat;
$escmode=0;
$http_headers_out{'Content-Type'}="text/html; charset=utf-8";
-]
</head>
<body>
[+ utf8::is_utf8($fdat{nom}) ? 'utf8' : 'other' +]
<br />
Received : [+ $fdat{nom} +]<br />
<form method="post" accept-charset="UTF-8">
<input type="text" id="nom" name="nom" />
<input type="submit" value="go" />
</form>
</body>
</html>
PS: In the same directory I have a base.epl file containing
[- Execute('*'); -]
--
Jean-Christophe Boggio -o)
[email protected] /\\
Independant Consultant and Developer _\_V
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]