On Thu, Sep 4, 2014 at 12:42 PM, <[email protected]> wrote:
> Author: markt
> Date: Thu Sep 4 09:42:04 2014
> New Revision: 1622434
>
> URL: http://svn.apache.org/r1622434
> Log:
> Fix corrupted characters.
>
> Modified:
> tomcat/trunk/test/org/apache/catalina/connector/TestRequest.java
>
> Modified: tomcat/trunk/test/org/apache/catalina/connector/TestRequest.java
> URL:
> http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/connector/TestRequest.java?rev=1622434&r1=1622433&r2=1622434&view=diff
>
> ==============================================================================
> --- tomcat/trunk/test/org/apache/catalina/connector/TestRequest.java
> (original)
> +++ tomcat/trunk/test/org/apache/catalina/connector/TestRequest.java Thu
> Sep 4 09:42:04 2014
> @@ -661,7 +661,7 @@ public class TestRequest extends TomcatB
> writer.append("Content-Disposition: form-data;
> name=\"part\"\r\n");
> writer.append("Content-Type: text/plain; charset=UTF-8\r\n");
> writer.append("\r\n");
> - writer.append("��").append("\r\n");
> + writer.append("äö").append("\r\n");
>
this is what I call wtf-8 encoding :-)
the important thing is the tests to work fine
> writer.flush();
>
> writer.append("\r\n");
> @@ -682,7 +682,7 @@ public class TestRequest extends TomcatB
> while ((line = reader.readLine()) != null) {
> response.add(line);
> }
> - assertTrue(response.contains("Part ��"));
> + assertTrue(response.contains("Part äö"));
> }
> } else {
> fail("OK status was expected: " + status);
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>