Hi, I have UTF8 pages where I remember that thing are handled correctly, but I have to dig a little bit deeper to find out what the difference to your example is. I am currently on a business trip and hope to get the time to look at it near the end of the week
Gerald > -----Original Message----- > From: Jean-Christophe Boggio [mailto:embp...@thefreecat.org] > Sent: Monday, April 26, 2010 12:16 PM > To: embperl@perl.apache.org > Subject: Re: Encoding problem > > 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) > embp...@thefreecat.org /\\ > Independant Consultant and Developer _\_V > > --------------------------------------------------------------------- > To unsubscribe, e-mail: embperl-unsubscr...@perl.apache.org > For additional commands, e-mail: embperl-h...@perl.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscr...@perl.apache.org For additional commands, e-mail: embperl-h...@perl.apache.org