You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/08/12 14:34:36 UTC

DO NOT REPLY [Bug 47686] New: Setting SSI variables appear to assume ISO-8859-1 character encoding

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 <bj...@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


DO NOT REPLY [Bug 47686] Setting SSI variables appear to assume ISO-8859-1 character encoding

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47686

--- Comment #5 from Rafael Gattringer <ra...@flowconsult.at> 2009-11-02 11:41:24 UTC ---
I would like to confirm this problem. See my attached SSI file for an example.

-- 
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


DO NOT REPLY [Bug 47686] Setting SSI variables appear to assume ISO-8859-1 character encoding

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47686


Bj <bj...@home.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bjorn.wiberg@home.se


-- 
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


DO NOT REPLY [Bug 47686] Setting SSI variables appear to assume ISO-8859-1 character encoding

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47686

--- Comment #4 from Rafael Gattringer <ra...@flowconsult.at> 2009-11-02 11:34:05 UTC ---
Created an attachment (id=24464)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24464)
Testcase that shows the problem, SSI has to be enabled!

-- 
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


DO NOT REPLY [Bug 47686] Setting SSI variables appear to assume ISO-8859-1 character encoding

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47686


Anders Kaseorg <an...@kaseorg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|Other                       |All
           Severity|normal                      |regression


-- 
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


DO NOT REPLY [Bug 47686] Setting SSI variables appear to assume ISO-8859-1 character encoding

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47686

Jeff Long <lo...@ku.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |long@ku.edu

-- 
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


DO NOT REPLY [Bug 47686] Setting SSI variables appear to assume ISO-8859-1 character encoding

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47686



--- Comment #2 from Joe Orton <jo...@redhat.com> 2009-08-13 03:34:59 PDT ---
The mod_include docs do clearly state that, for echo,

a) encoding=entity is the default, and
b) encoding=entity will not work correctly if a character encoding other than
ISO-8859-1 is in use

For the example given here, at least, using 

<!--#echo encoding="none" var="..."

would be the correct use, surely?

But the potential for breaking backwards compat in bug 25202 does seem to have
been clearly called.  Iwan Stanley's approach in bug 25202 comment 7 seems
vastly preferable to the change which got committed.

-- 
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


DO NOT REPLY [Bug 47686] Setting SSI variables appear to assume ISO-8859-1 character encoding

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47686

Graham Leggett <mi...@sharp.fm> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Graham Leggett <mi...@sharp.fm> 2010-09-19 09:03:34 EDT ---
Fixed on trunk in r998651.

-- 
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


DO NOT REPLY [Bug 47686] Setting SSI variables appear to assume ISO-8859-1 character encoding

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47686



--- Comment #1 from Ruediger Pluem <rp...@apache.org> 2009-08-12 11:51:56 PDT ---
I guess this is caused by the fix for PR25202 (r730296, r732583). This might be
tricky to fix.

-- 
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


DO NOT REPLY [Bug 47686] Setting SSI variables appear to assume ISO-8859-1 character encoding

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47686


Bj <bj...@home.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|bjorn.wiberg@home.se        |Bjorn.Wiberg@its.uu.se


-- 
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


DO NOT REPLY [Bug 47686] Setting SSI variables appear to assume ISO-8859-1 character encoding

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47686


Anders Kaseorg <an...@kaseorg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anders@kaseorg.com
         OS/Version|AIX                         |All


--- Comment #3 from Anders Kaseorg <an...@kaseorg.com> 2009-08-17 07:48:05 PDT ---
(In reply to comment #2)
> For the example given here, at least, using 
> <!--#echo encoding="none" var="..."
> would be the correct use, surely?

That doesn’t work, though, when the variable may contain <>&".

-- 
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


DO NOT REPLY [Bug 47686] Setting SSI variables appear to assume ISO-8859-1 character encoding

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47686

Rafael Gattringer <ra...@flowconsult.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rafael.gattringer.floss@flo
                   |                            |wconsult.at

-- 
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