Make UTF-8 the default charset

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@930924 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2010-04-05 18:14:25 +00:00
parent 91e8bdca53
commit 4bc76411dd
1 changed files with 1 additions and 1 deletions

View File

@ -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?