in reply to Re: How do I convince my Perl script that UTF-8 from an HTML form really is UTF-8?
in thread [SOLVED] How do I convince my Perl script that UTF-8 from an HTML form really is UTF-8?
As of today, static pages can declare their own encoding in a meta element, e.g. <meta charset="utf-8">
This is what I mean when I said I declared the charset in the HTML
If you write UTF-8 in the response CGI script, you ought to print "Content-type: text/plain; charset=utf-8\n\n":
The server had already added the UTF-8 content type in the HTTP headers
binmode STDOUT, ":encoding(UTF-8)";
I had done this but forgot to include it in the code snippet. It still didn't work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How do I convince my Perl script that UTF-8 from an HTML form really is UTF-8?
by haj (Vicar) on Mar 11, 2020 at 21:24 UTC |