public static String getEntityEncoding ( HttpEntity entity ) { final Header header = entity . getContentEncoding ( ) ; if ( header == null ) return null ; return header . getValue ( ) ; }
Returns entity encoding .