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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Bj <[email protected]> 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 ä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 är nu utloggad ur den CAS-tjänst du besökte.
...instead of in HTML:
Du ä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: [email protected]
For additional commands, e-mail: [email protected]