Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Printing Chinese characters with CGI.pmby oylee (Pilgrim) |
on Jul 23, 2002 at 18:42 UTC ( [id://184531]=perlquestion: print w/replies, xml ) | Need Help?? |
oylee has asked for the wisdom of the Perl Monks concerning the following question:
Hello there:
I've been trying to manually print out Chinese characters with CGI.pm (with a charset of either big5 of gb2312).. I'm just at a loss as to how to display binary characters, if that's what that is..
When I slurp in an HTML file containing Chinese characters and spit it back out using something like print $q->p($slurped_in_characters) it displays the characters properly, but I can't seem to print my own characters out -- this may stem from my horribly incomplete understanding of the internal representation of the big5 or gb2312 charsets. My rudimentary checking out of the bytes and utf8 perldocs hasn't brought me any enlightenment either. Thanks in advance for any input! Allen
Back to
Seekers of Perl Wisdom
|
|