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=35775>.
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=35775





------- Additional Comments From [EMAIL PROTECTED]  2005-07-18 18:48 -------
This bug will not be a problem, if all url are encoded and decoded by the tomcat
encoders / decoders. But if some urls are encoded by some function that works
like the java.net.UrlEncoder with a charset argument, it will fail whenever the
charset for encoding was not ISO-8859-1, windows-1252,... (more not verified
yet) but a multi-byte charset (MBCs). 

The following method may be added to a junit TestCase (import
org.apache.util.buf.* from the <tomcat>/server/lib/tomcat-util.jar). 


    /**
     * Tests decoding german "umlaute" with apache tomcat UDecoder.<p>
     *
     */
    public void testDecodeUmlautsTomcat() {

        String param = "%C3%BC"; // Ü
        UDecoder decoder = new UDecoder();
        String decoded = decoder.convert(param);
        assertEquals("ü", decoded);
    }

    

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to