I have tried those modules and others like Encode, and they produce UTF-8 strings, but without printing those first 3 special chars which made the browser and other programs to recognize that it is a UTF-8 file.
Are you talking about the Byte Order Marks (BOM) ? The browser doesn't need these to know that the file is UTF-8. - Other apps might.
There are several ways to tell a browser what the encoding of a page is. Use one of these methods when outputting from your cgi script, then do a "View->Page Encoding" in the browser, and you'll see it set to UTF-8.
1. print header (-charset => 'utf-8')'; -this sets the HTTP header
2. Put this in the <head> tag: <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
3. there's another way that I can't remember....
You only need #1 or #2. If you set both to the same encoding then that's no problem. But if you set both to different encodings, then #1 wins.
There's an article on unicode in Perl 5.6.1 at http://developers.sun.com/dev/gadc/unicode/perl/perl561.html though I know that Perl 5.8 has made big strides wrt to unicode.
- and you can also pose questions at the feedback page: http://developers.sun.com/contact/feedback.jsp?requrl=/UserTypedUrl&category=gadc
Or subscribe to the perl unicode alias I mentioned earlier.
-m
I have tried those modules and others like Encode, and they produce UTF-8 strings, but without printing those first 3 special chars which made the browser and other programs to recognize that it is a UTF-8 file.
Thank you anyway.
Teddy
----- Original Message ----- From: "Wiggins d Anconia" <[EMAIL PROTECTED]> To: "Octavian Rasnita" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 30, 2004 5:38 PM Subject: Re: Output Unicode
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>