@Override
    public String getCharacterEncoding() {
        String encoding = result.getQuery().getModel().getEncoding();
        return (encoding != null) ? encoding : rendererCopy.getEncoding();
    }
Returns expected character encoding of this response
container-search/src/main/java/com/yahoo/search/handler/HttpSearchResponse.java