title: Set response encoding with HttpClient 3.1
body: <p>I'm using <code>org.apache.commons.httpclient.HttpClient</code> and need to setup response encoding (for some reason server returns incorrect encoding in Content-Type). My way is to get response as raw bytes and convert to <code>String</code> with desired encoding. I'm wondering if there is some better way to do this (eg. setup HttpClient). Thanks for suggestions.</p>