Code example for StringEntity

Methods: setContentEncoding