perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Problem with charset in embperl 2
Date Thu, 02 Oct 2003 20:34:23 GMT
>
> 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


Mime
View raw message