Fix service provider code so that it uses UTF-8 for better cross-platform
compatibility with non-ascii platforms like EBCDIC git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225918 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1a37d8fa1c
commit
c4ca9aa4a8
@ -209,7 +209,7 @@ class FactoryFinder {
|
||||
if( is!=null ) {
|
||||
debugPrintln("found " + serviceId);
|
||||
BufferedReader rd =
|
||||
new BufferedReader(new InputStreamReader(is));
|
||||
new BufferedReader(new InputStreamReader(is, "UTF-8"));
|
||||
|
||||
String factoryClassName = rd.readLine();
|
||||
rd.close();
|
||||
|
||||
@ -208,7 +208,7 @@ class FactoryFinder {
|
||||
if( is!=null ) {
|
||||
debugPrintln("found " + serviceId);
|
||||
BufferedReader rd =
|
||||
new BufferedReader(new InputStreamReader(is));
|
||||
new BufferedReader(new InputStreamReader(is, "UTF-8"));
|
||||
|
||||
String factoryClassName = rd.readLine();
|
||||
rd.close();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user