DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30842>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30842

<html:link> not using page charset encoding (defaults to "UTF-8")

           Summary: <html:link> not using page charset encoding (defaults to
                    "UTF-8")
           Product: Struts
           Version: 1.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When defining a JSP page in the following way:
   <%@ page contentType="text/html; charset=ISO-8859-1" language="java" %>
the <html:link> tag renders URLs using the default (UTF-8) charset instead.

I have been able to track the bug down to RequestUtils.encodeURL:
   return (String) encode.invoke(null, new Object[] { url, "UTF-8" });
but I don“t know how to make this method charset-aware.
Maybe this bug extends to other tags that render content without heeding the
page charset.

The bug was discovered while trying to render a URL whose parameter values
contained non-english characters.

Thanks a lot.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to