Re: output with utf8

2007-05-16 Thread Jeff Pang
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. Hello, Just do, binmode(STDOUT, :utf8); see perldoc perluniintro for more details. -- Jeff Pang http://home.arcor.de/jeffpang

Re: output with utf8

2007-05-16 Thread Jen mlists
Hello, Does thie mean when I say, binmode(STDOUT, :utf8); The characters would be translated to utf8 for output automatically? (Would I need to translate them to utf8 firstly before output?) Thanks again. 2007/5/16, Jeff Pang [EMAIL PROTECTED]: Jen mlists 写道: Hello, I need to output

output with utf8

2007-05-15 Thread 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. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: output with utf8

2007-05-15 Thread yitzle
Check out http://perldoc.perl.org/encoding.html On 5/15/07, Jen mlists [EMAIL PROTECTED] wrote: 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. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional