mirror of https://github.com/apache/lucene.git
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:
parent
91e8bdca53
commit
4bc76411dd
|
@ -175,7 +175,7 @@ public class VelocityResponseWriter implements QueryResponseWriter {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getContentType(SolrQueryRequest request, SolrQueryResponse response) {
|
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?
|
private String getJSONWrap(String xmlResult) { // TODO: maybe noggit or Solr's JSON utilities can make this cleaner?
|
||||||
|
|
Loading…
Reference in New Issue