in reply to Re^2: Confusing UTF-8 bug in CGI-script
in thread Confusing UTF-8 bug in CGI-script
What you mean: isn't text.
The text you typed into your browser is transformed by it as follows:
That leaves you something that's no longer your text. The proper inverse of that is:
You're adding an additional step:
The fourth step notices something is odd and throws an error.
And how then transfer the text and make perl to understand it is UTF-8 encoded?
That's what the «-utf8» in «use CGI qw(:all -utf8);» does. "This makes CGI.pm treat all parameters as UTF-8 strings" by passing them to decode.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Confusing UTF-8 bug in CGI-script
by wanradt (Scribe) on Feb 01, 2011 at 21:13 UTC |