Re: Creating a UTF-8 web page

2004-04-08 Thread Nick Ing-Simmons
Octavian Rasnita <[EMAIL PROTECTED]> writes: >I have tried the following script: > >#!/perl/bin/perl -wC > >use Encode; > >my $text = Encode::decode('latin2', 'mÃta'); > >binmode(STDOUT, ":utf8"); > >print "Content-Type: text/html; Charset=UTF-8\n\n"; >print Encode::encode('utf8', $text); > You ha

Re: Creating a UTF-8 web page

2004-04-08 Thread Octavian Rasnita
t;Eric Cholet" <[EMAIL PROTECTED]> To: "Octavian Rasnita" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, April 08, 2004 1:06 PM Subject: Re: Creating a UTF-8 web page > Le 8 avr. 04, à 07:38, Octavian Rasnita a écrit : > > > Ok, thank yo

Re: Creating a UTF-8 web page

2004-04-08 Thread Eric Cholet
Le 8 avr. 04, à 07:38, Octavian Rasnita a écrit : Ok, thank you for your help, but I guess in this case my problem is that I don't know how to print the UTF8 string. I want to get a latin2 text and print it as UTF-8 and I hope this is not too complicated. Please help. For example I want to print

Re: Creating a UTF-8 web page

2004-04-07 Thread Octavian Rasnita
hank you. Teddy - Original Message - From: "Brian Stell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 07, 2004 7:00 PM Subject: Re: Creating a UTF-8 web page > > binmode($outf, ":utf8"); > # write BOM > print $outf chr(0xfeff); > > > Eric Cholet wrote:

Re: Creating a UTF-8 web page

2004-04-07 Thread Brian Stell
binmode($outf, ":utf8"); # write BOM print $outf chr(0xfeff); Eric Cholet wrote: > > Le 7 avr. 04, à 09:21, Octavian Rasnita a écrit : > > > Hi all, > > > > Please tell me if there is a way to create a web page encoded as UTF-8 > > (like > > Google's page) using perl. > > > > I hav

Re: Creating a UTF-8 web page

2004-04-07 Thread Eric Cholet
Le 7 avr. 04, à 09:21, Octavian Rasnita a écrit : Hi all, Please tell me if there is a way to create a web page encoded as UTF-8 (like Google's page) using perl. I have tried more modules but without success. The UTF-8 string is created fine (I think) but I don't know how to print those 3 spec