SOLR-286 - use utf-8 encoding for getBytes()

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552756 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2007-07-03 09:13:28 +00:00
parent 07e9fc3556
commit 058aa7ed27
2 changed files with 4 additions and 1 deletions

View File

@ -107,6 +107,9 @@ Bug Fixes
3. SOLR-283: autoCommit was not working after delete. (ryan)
4. SOLR-286: ContentStreamBase was not using default encoding for getBytes()
(Toru Matsuzawa via ryan)
Other Changes
1. SOLR-135: Moved common classes to org.apache.solr.common and altered the
build scripts to make two jars: apache-solr-1.3.jar and

View File

@ -140,7 +140,7 @@ public abstract class ContentStreamBase implements ContentStream
}
public InputStream getStream() throws IOException {
return new ByteArrayInputStream( str.getBytes() );
return new ByteArrayInputStream( str.getBytes(DEFAULT_CHARSET) );
}
/**