public void setEncodingToResponse(WOResponse response) { setEncodingToResponse(response, encoding());
public static void setEncodingToResponse(WOResponse response, String encoding) { if (! availableEncodings().containsObject(encoding)) throw createIllegalArgumentException(encoding, "encoding", "availableEncodings()");  String mimeType = response.headerForKey("Content-Type"); if(mimeType != null  &&  mimeType.equals("text/html")) { response.setContentEncoding (encoding); response.setHeader("text/html; charset=" + _encodings().objectForKey(encoding), "Content-Type"); }
    public void setEncodingToResponse(WOResponse response) {        setEncodingToResponse(response, encoding());    }