You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by ck...@eplsite.org on 2003/09/12 02:45:39 UTC
Problem with charset in embperl 2
Hi all:
i have this file:
<html><header><title> this is the title</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
</header><body>
special chars in spanish:
áéíóú
</body></html>
if i save this file using UTF-8 and i get it using embperl 2 i see this:
special chars in spanish: áéÃóÃ
if i save the file using ISO-8859-1 everything works fine(but what happen
with thecharset?).
if i change and use embperl 1.3.6 i do not have the problem in any condition.
Why this difference between both embperl versions?
Thank you in advance
Carlos Kassab
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Problem with charset in embperl 2
Posted by Gerald Richter <ri...@ecos.de>.
>
> i have this file:
> <html><header><title> this is the title</title>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
> </header><body>
> special chars in spanish:
> áéíóú
> </body></html>
> if i save this file using UTF-8 and i get it using embperl 2 i see
> this: special chars in spanish: áéÃóÃ
>
> if i save the file using ISO-8859-1 everything works fine(but what
> happen with thecharset?).
>
> if i change and use embperl 1.3.6 i do not have the problem in any
> condition.
>
> Why this difference between both embperl versions?
>
1.3.6 scans the meta tag and adds it to your http header Embperl 2 has not
impleented this feature, use %http_headers_out instead:
[- $http_headers_ut{'Content-Type'} = 'text/html; charset=UTF-8' -]
Gerald
P.S. It shouldn't be hard to add the meta tag to the
EMbperl/Syntax/EmbperlHTML.pm so it is also supported in 2.0
> Thank you in advance
>
> Carlos Kassab
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
--------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 939-122
WWW: http://www.ecos.de/ Fax: +49 6133 939-333
--------------------------------------------------------------
|
| ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org