From 4bc76411ddc670ad432748a6d7d70a64f7f51121 Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Mon, 5 Apr 2010 18:14:25 +0000 Subject: [PATCH] Make UTF-8 the default charset git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@930924 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/solr/response/VelocityResponseWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/contrib/velocity/src/main/java/org/apache/solr/response/VelocityResponseWriter.java b/solr/contrib/velocity/src/main/java/org/apache/solr/response/VelocityResponseWriter.java index 37b9e292b9c..012692db50a 100644 --- a/solr/contrib/velocity/src/main/java/org/apache/solr/response/VelocityResponseWriter.java +++ b/solr/contrib/velocity/src/main/java/org/apache/solr/response/VelocityResponseWriter.java @@ -175,7 +175,7 @@ public class VelocityResponseWriter implements QueryResponseWriter { } public String getContentType(SolrQueryRequest request, SolrQueryResponse response) { - return request.getParams().get("v.contentType", "text/html"); + return request.getParams().get("v.contentType", "text/html;charset=UTF-8"); } private String getJSONWrap(String xmlResult) { // TODO: maybe noggit or Solr's JSON utilities can make this cleaner?