develooper Front page | perl.beginners | Postings from May 2007

Re: output with utf8

Thread Previous | Thread Next
Jeff Pang
May 16, 2007 00:18
Re: output with utf8
Message ID:
Jen mlists 写道:
> Hello,
> I need to output contents with utf8 encoding in CGI scripts.
> Can you tell me how to open STDOUT with utf8 support?Thanks you.

Just do,
binmode(STDOUT, ":utf8");

see "perldoc perluniintro" for more details.

Jeff Pang

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About