You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2003/04/15 14:13:36 UTC

DO NOT REPLY [Bug 19027] New: - HttpContants.getContentString wrong inplementaion.

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19027

HttpContants.getContentString wrong inplementaion.

           Summary: HttpContants.getContentString wrong inplementaion.
           Product: Commons
           Version: 2.0 Alpha 3
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HttpClient
        AssignedTo: commons-httpclient-dev@jakarta.apache.org
        ReportedBy: shinobo@leo.bekkoame.ne.jp


I found that getContentString is wrong.
As shown bellow, this implementation ignores charset parameter. 

-----------------
    public static String getContentString(final byte[] data, String charset) {
        return getContentString(data, 0, data.length);
    }
----------------

this must be:

    public static String getContentString(final byte[] data, String charset) {
        return getContentString(data, 0, data.length, charset);
    }