mirror of https://github.com/apache/lucene.git
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:
parent
6d5163dd21
commit
413d330041
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue