Code example for StringEntity

Methods: setContentEncoding, setContentType