From gepiti at gepiti.com Thu Jul 8 12:13:10 2004
From: gepiti at gepiti.com (Giorgos Epitidios)
Date: Mon Aug 2 21:23:00 2004
Subject: [Athens-pm] Question: unicode perl output html
Message-ID: <115901c4650e$d8964210$9b95a8c0@dolusers.internal.dolnet.gr>
Hi all,
I have a perl script (perl 5.8.0) that writes unicode greek html text.
Mozilla and Internet Explorer for windows can show the greek text correctly if the user manually specifies the encoding (ie from View - Encoding - Unicode) but the browsers do not recognize it automatically. You can see an example at http://www.netclipping.gr/utf.htm
Any ideas?
Thank you.
Giorgos Epitidios
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/athens-pm/attachments/20040708/95a87677/attachment.htm
From karjala at karjala.org Thu Jul 8 14:07:09 2004
From: karjala at karjala.org (Alexander Karelas)
Date: Mon Aug 2 21:23:00 2004
Subject: [Athens-pm] Question: unicode perl output html
In-Reply-To: <115901c4650e$d8964210$9b95a8c0@dolusers.internal.dolnet.gr>
References: <115901c4650e$d8964210$9b95a8c0@dolusers.internal.dolnet.gr>
Message-ID: <40ED9B5D.7020001@karjala.org>
Your tag should be inside the
section, and Content-Type
should be quoted.
Hope that helps
- Alexander
Giorgos Epitidios wrote:
> Hi all,
>
> I have a perl script (perl 5.8.0) that writes unicode greek html text.
>
> Mozilla and Internet Explorer for windows can show the greek text
> correctly if the user manually specifies the encoding (ie from View -
> Encoding - Unicode) but the browsers do not recognize it
> automatically. You can see an example at http://www.netclipping.gr/utf.htm
>
> Any ideas?
>
> Thank you.
>
> Giorgos Epitidios
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Athens-pm mailing list
>Athens-pm@mail.pm.org
>http://mail.pm.org/mailman/listinfo/athens-pm
>
>
From karjala at karjala.org Thu Jul 8 14:10:54 2004
From: karjala at karjala.org (Alexander Karelas)
Date: Mon Aug 2 21:23:00 2004
Subject: [Athens-pm] Question: unicode perl output html
In-Reply-To: <115901c4650e$d8964210$9b95a8c0@dolusers.internal.dolnet.gr>
References: <115901c4650e$d8964210$9b95a8c0@dolusers.internal.dolnet.gr>
Message-ID: <40ED9C3E.5010409@karjala.org>
Also, the HTTP header that the server sends to the browser before it
sends the HTML, says:
Date: Thu, 08 Jul 2004 19:11:00 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Vary: accept-language
Accept-Ranges: bytes
Content-Length: 1063
Connection: close
_*Content-Type: text/html; charset=ISO-8859-7*_
I don't know if the setting in the META tag overrides the setting in the
HTTP header.
- Alex
Giorgos Epitidios wrote:
> Hi all,
>
> I have a perl script (perl 5.8.0) that writes unicode greek html text.
>
> Mozilla and Internet Explorer for windows can show the greek text
> correctly if the user manually specifies the encoding (ie from View -
> Encoding - Unicode) but the browsers do not recognize it
> automatically. You can see an example at http://www.netclipping.gr/utf.htm
>
> Any ideas?
>
> Thank you.
>
> Giorgos Epitidios
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Athens-pm mailing list
>Athens-pm@mail.pm.org
>http://mail.pm.org/mailman/listinfo/athens-pm
>
>
From angelos at unix.gr Fri Jul 9 02:35:07 2004
From: angelos at unix.gr (Angelos Karageorgiou)
Date: Mon Aug 2 21:23:01 2004
Subject: [Athens-pm] Question: unicode perl output html
In-Reply-To: <115901c4650e$d8964210$9b95a8c0@dolusers.internal.dolnet.gr>
Message-ID:
Your problem is that your apache server is defaulting to iso-8859-7
lynx --head http://www.netclipping.gr/utf.htm
HTTP/1.1 200 OK
Date: Fri, 09 Jul 2004 07:36:43 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Last-Modified: Thu, 08 Jul 2004 17:13:43 GMT
ETag: "74ee0-a9b-23c7fc0"
Accept-Ranges: bytes
Content-Length: 2715
Connection: close
Content-Type: text/html; charset=ISO-8859-7
On Thu, 8 Jul 2004, Giorgos Epitidios wrote:
> Date: Thu, 8 Jul 2004 20:13:10 +0300
> From: Giorgos Epitidios
> To: athens-pm@mail.pm.org
> Subject: [Athens-pm] Question: unicode perl output html
>
> Hi all,
>
> I have a perl script (perl 5.8.0) that writes unicode greek html text.
>
> Mozilla and Internet Explorer for windows can show the greek text correctly if the user manually specifies the encoding (ie from View - Encoding - Unicode) but the browsers do not recognize it automatically. You can see an example at http://www.netclipping.gr/utf.htm
>
> Any ideas?
>
> Thank you.
>
> Giorgos Epitidios
--
Angelos Karageorgiou
Masters of Computer Science
City University of New York
http://www.unix.gr
-------------- next part --------------
_______________________________________________
Athens-pm mailing list
Athens-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/athens-pm
From karjala at karjala.org Fri Jul 9 07:11:20 2004
From: karjala at karjala.org (Alexander Karelas)
Date: Mon Aug 2 21:23:01 2004
Subject: [Athens-pm] Question: unicode perl output html
In-Reply-To:
References:
Message-ID: <40EE8B68.7020302@karjala.org>
Indeed. I tried it on my server, and the META tag cannot override the
setting of the apache server's http header. So as long as Apache sets
charset=iso-8859-7 the page will appear in that charset.
Alex
Angelos Karageorgiou wrote:
>Your problem is that your apache server is defaulting to iso-8859-7
>
>lynx --head http://www.netclipping.gr/utf.htm
>
>HTTP/1.1 200 OK
>Date: Fri, 09 Jul 2004 07:36:43 GMT
>Server: Apache/2.0.40 (Red Hat Linux)
>Last-Modified: Thu, 08 Jul 2004 17:13:43 GMT
>ETag: "74ee0-a9b-23c7fc0"
>Accept-Ranges: bytes
>Content-Length: 2715
>Connection: close
>Content-Type: text/html; charset=ISO-8859-7
>
>
>On Thu, 8 Jul 2004, Giorgos Epitidios wrote:
>
>
>
>>Date: Thu, 8 Jul 2004 20:13:10 +0300
>>From: Giorgos Epitidios
>>To: athens-pm@mail.pm.org
>>Subject: [Athens-pm] Question: unicode perl output html
>>
>>Hi all,
>>
>>I have a perl script (perl 5.8.0) that writes unicode greek html text.
>>
>>Mozilla and Internet Explorer for windows can show the greek text correctly if the user manually specifies the encoding (ie from View - Encoding - Unicode) but the browsers do not recognize it automatically. You can see an example at http://www.netclipping.gr/utf.htm
>>
>>Any ideas?
>>
>>Thank you.
>>
>>Giorgos Epitidios
>>
>>
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Athens-pm mailing list
>Athens-pm@mail.pm.org
>http://mail.pm.org/mailman/listinfo/athens-pm
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Athens-pm mailing list
>Athens-pm@mail.pm.org
>http://mail.pm.org/mailman/listinfo/athens-pm
>
>
From angelos at unix.gr Fri Jul 9 08:29:05 2004
From: angelos at unix.gr (Angelos Karageorgiou)
Date: Mon Aug 2 21:23:01 2004
Subject: [Athens-pm] Question: unicode perl output html
In-Reply-To: <40EE8B68.7020302@karjala.org>
Message-ID:
Oh btw , if you have php on the server look for the tag in php.ini
not in the httpd.conf file, Just spent 2 hours looking for the damn thing
:-(
On Fri, 9 Jul 2004, Alexander Karelas wrote:
> Date: Fri, 09 Jul 2004 15:11:20 +0300
> From: Alexander Karelas
> Cc: athens-pm@mail.pm.org
> Subject: Re: [Athens-pm] Question: unicode perl output html
>
> Indeed. I tried it on my server, and the META tag cannot override the
> setting of the apache server's http header. So as long as Apache sets
> charset=iso-8859-7 the page will appear in that charset.
>
> Alex
>
>
>
> Angelos Karageorgiou wrote:
>
> >Your problem is that your apache server is defaulting to iso-8859-7
> >
> >lynx --head http://www.netclipping.gr/utf.htm
> >
> >HTTP/1.1 200 OK
> >Date: Fri, 09 Jul 2004 07:36:43 GMT
> >Server: Apache/2.0.40 (Red Hat Linux)
> >Last-Modified: Thu, 08 Jul 2004 17:13:43 GMT
> >ETag: "74ee0-a9b-23c7fc0"
> >Accept-Ranges: bytes
> >Content-Length: 2715
> >Connection: close
> >Content-Type: text/html; charset=ISO-8859-7
> >
> >
> >On Thu, 8 Jul 2004, Giorgos Epitidios wrote:
> >
> >
> >
> >>Date: Thu, 8 Jul 2004 20:13:10 +0300
> >>From: Giorgos Epitidios
> >>To: athens-pm@mail.pm.org
> >>Subject: [Athens-pm] Question: unicode perl output html
> >>
> >>Hi all,
> >>
> >>I have a perl script (perl 5.8.0) that writes unicode greek html text.
> >>
> >>Mozilla and Internet Explorer for windows can show the greek text correctly if the user manually specifies the encoding (ie from View - Encoding - Unicode) but the browsers do not recognize it automatically. You can see an example at http://www.netclipping.gr/utf.htm
> >>
> >>Any ideas?
> >>
> >>Thank you.
> >>
> >>Giorgos Epitidios
> >>
> >>
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >Athens-pm mailing list
> >Athens-pm@mail.pm.org
> >http://mail.pm.org/mailman/listinfo/athens-pm
> >
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >Athens-pm mailing list
> >Athens-pm@mail.pm.org
> >http://mail.pm.org/mailman/listinfo/athens-pm
> >
> >
>
>
> _______________________________________________
> Athens-pm mailing list
> Athens-pm@mail.pm.org
> http://mail.pm.org/mailman/listinfo/athens-pm
>
--
Angelos Karageorgiou
Masters of Computer Science
City University of New York
http://www.unix.gr