You should be *encoding* what you print. The system file handle and HTTP can only deal with bytes, which means the characters much be converted from Perl's internal string format (as returned by mysql_enable_utf8 => 1) into bytes by encoding them.
orprint encode("UTF-8", "$row[0]\t$row[1]\n");
binmode(STDOUT, ':encoding(UTF-8)'); print "$row[0]\t$row[1]\n";
In reply to Re^3: substitution regex and unicode
by ikegami
in thread substitution regex and unicode
by frasco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |