in reply to UTF-8 from a CGI script
before your print statement. Update: to see why this matters, before doing that try adding use warnings; and checking your server log. You'll see warnings to the effect of "Wide character in print at..." which means that Perl does not know how to output the Unicode characters because STDOUT is currently using some single-byte encoding (usually ISO-8859-1). So you need to explicitly tell it to use UTF-8 instead.binmode STDOUT, ':utf8';
|
|---|