lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject svn commit: r930924 - /lucene/dev/trunk/solr/contrib/velocity/src/main/java/org/apache/solr/response/VelocityResponseWriter.java
Date Mon, 05 Apr 2010 18:14:25 GMT
Author: ehatcher
Date: Mon Apr  5 18:14:25 2010
New Revision: 930924

URL: http://svn.apache.org/viewvc?rev=930924&view=rev
Log:
Make UTF-8 the default charset

Modified:
    lucene/dev/trunk/solr/contrib/velocity/src/main/java/org/apache/solr/response/VelocityResponseWriter.java

Modified: lucene/dev/trunk/solr/contrib/velocity/src/main/java/org/apache/solr/response/VelocityResponseWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/contrib/velocity/src/main/java/org/apache/solr/response/VelocityResponseWriter.java?rev=930924&r1=930923&r2=930924&view=diff
==============================================================================
--- lucene/dev/trunk/solr/contrib/velocity/src/main/java/org/apache/solr/response/VelocityResponseWriter.java
(original)
+++ lucene/dev/trunk/solr/contrib/velocity/src/main/java/org/apache/solr/response/VelocityResponseWriter.java
Mon Apr  5 18:14:25 2010
@@ -175,7 +175,7 @@ public class VelocityResponseWriter impl
   }
 
   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?



Mime
View raw message