httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47686] New: Setting SSI variables appear to assume ISO-8859-1 character encoding
Date Wed, 12 Aug 2009 12:34:36 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47686

           Summary: Setting SSI variables appear to assume ISO-8859-1
                    character encoding
           Product: Apache httpd-2
           Version: 2.2.13
          Platform: Other
        OS/Version: AIX
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_include
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: bjorn.wiberg@home.se


--- Comment #0 from Bj <bjorn.wiberg@home.se> 2009-08-12 05:34:34 PDT ---
Setting an SSI variable to a value containing UTF-8 characters and then echoing
it yields output with HTML entities for each of the two bytes of each UTF-8
character.

E.g.:

<!--#set var="DEFAULT_APPLICATION_DESCRIPTION" value="den CAS-tjänst du
besökte" -->
<!--#set var="APPLICATION_DESCRIPTION"
value="${DEFAULT_APPLICATION_DESCRIPTION}" -->
Du &auml;r nu utloggad ur <!--#echo var="APPLICATION_DESCRIPTION" -->.

...yields (in browser):

Du är nu utloggad ur den CAS-tjänst du besökte.

...instead of (in browser):

Du är nu utloggad ur den CAS-tjänst du besökte.

...and in HTML:

Du &auml;r nu utloggad ur den CAS-tj&#195;&#164;nst du bes&#195;&#182;kte.

...instead of in HTML:

Du &auml;r nu utloggad ur den CAS-tjänst du besökte.


This was not so in Apache 2.2.11.

The .shtml page is in UTF-8 (with BOM) and has:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

In httpd.conf, AddDefaultCharset is NOT set (so uses default value).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message