SOLR-973 followup - Create OutputStreamWriter with utf-8 encoding

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@756703 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2009-03-20 18:43:39 +00:00
parent 6d5163dd21
commit 413d330041
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class RequestWriter {
public void write(SolrRequest request, OutputStream os) throws IOException {
if (request instanceof UpdateRequest) {
UpdateRequest updateRequest = (UpdateRequest) request;
OutputStreamWriter writer = new OutputStreamWriter(os);
OutputStreamWriter writer = new OutputStreamWriter(os, "UTF-8");
updateRequest.writeXML(writer);
writer.flush();
}