I'd say the problem is that the content of your page is not in fact in UTF-8. Telling the browser that it is is one thing, but that doesn't make the content itself UTF-8 encoded.
Are you sure you can actually create a UTF-8 encoded file?
If you create a web page using Mozilla Composer ( part of the Mozilla browser bundle - free at mozilla.org), it allows you to save it as UTF-8.
That's what I did with multiling.txt attached. - except I exported it as text. [It may look like garbage in notepad - but it should be ok when viewed as UTF-8 in browser]
It contains 3 strings - japanese, korean and hebrew.
[to input ja, ko or he strings - merely copy and paste them from a website in that language]
Find also atahced a simple script to read in the text and ouput it to the browser.
Run this script in a browser - and it should output strings in ja, ko and he.
[ To make sure you've got the correct font support for viewing languages encoded in utf-8, visit the UTF-8 sampler page at http://www.columbia.edu/kermit/utf8.html ]
Other ways of outputting utf-8 characters in perl are available in the article at http://developers.sun.com/dev/gadc/unicode/perl/perl561.html - see the 'source' links.
Thank you.
I have tried to set the header of the web page as you described, but I have seen that the special chars like ēūãîâĒŪÃÎÂ are not recognized correctly, even though the browser recognizes that the encoding is UTF-8.
However, I have seen that the page returned by Google is viewed correctly, but their page uses those byte order marks special chars that I don't know how to print.
If I print only common ASCII chars, I have no problem printing them in UTF8.
Thanks.
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 Japanese string:
ãåãåãã | äŧį¤žæ å | æĄį¨æ å ą | ããŠã¤ããˇãŧ | åŠį¨čĻį´ | åæ¨
Korean: ëë ė ëĻŦëĨŧ 먚ė ė ėė´ė. ꡸ëë ėíė§ ėėė
Hebrew ×× × ×××× ××××× ××××××Ē ××× ×× ×××ק ××.
multiling.cgi
Description: Binary data-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>