in reply to Strange behaviour with utf8 and wide chars
Assuming this is running in CGI you can do
and that ought to work. This is required because even though you are telling the browser the data is in UTF-8, you aren't telling Perl to output UTF-8 unless you add that line. See perlunicode and perlio for more.binmode STDOUT, ':utf8';
Update: It has been so long since I used 5.6 I had forgotten about the good point raised by almut. But for heaven's sake, Perl 5.8.1 was released in 2003.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Strange behaviour with utf8 and wide chars
by isync (Hermit) on Mar 22, 2007 at 23:36 UTC |