https://issues.apache.org/bugzilla/show_bug.cgi?id=55852

            Bug ID: 55852
           Summary: charset not recognized if value in single quotes
           Product: JMeter
           Version: 2.10
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: HTTP
          Assignee: [email protected]
          Reporter: [email protected]

When using proxy for recording traffic, if any request has specified a charset
in single-quotes it produces java.nio.charset.IllegalCharsetNameException.

If request is something like this:

<meta http-equiv="Content-Type" content="text/html;charset='UTF-8'">

The following exception occurs:

2013/12/04 14:08:48 ERROR - jmeter.protocol.http.proxy.Proxy: Not implemented
(probably used https) java.nio.charset.IllegalCharsetNameException: 'UTF-8'
    at java.nio.charset.Charset.checkName(Charset.java:284)
    at java.nio.charset.Charset.lookup2(Charset.java:458)
    at java.nio.charset.Charset.lookup(Charset.java:437)
    at java.nio.charset.Charset.isSupported(Charset.java:479)
    at
org.apache.jmeter.protocol.http.util.ConversionUtils.getEncodingFromContentType(ConversionUtils.java:73)
    at
org.apache.jmeter.protocol.http.proxy.Proxy.addPageEncoding(Proxy.java:493)
    at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:215)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to