Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit 40908d1

Browse files
author
hboutemy
committed
use UTF-8 to read/write XML streams instead of platform encoding
1 parent 6cc3fc5 commit 40908d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plexus-container-default/src/main/java/org/codehaus/plexus/configuration/io/XmlPlexusConfigurationReader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public PlexusConfiguration read( InputStream inputStream )
2020
throws IOException,
2121
PlexusConfigurationException
2222
{
23-
return read( new InputStreamReader( inputStream ) );
23+
return read( new InputStreamReader( inputStream, "UTF-8" ) );
2424
}
2525

2626
public PlexusConfiguration read( Reader reader )

plexus-container-default/src/main/java/org/codehaus/plexus/configuration/io/XmlPlexusConfigurationWriter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class XmlPlexusConfigurationWriter
1414
public void write( OutputStream outputStream, PlexusConfiguration configuration )
1515
throws IOException
1616
{
17-
write( new OutputStreamWriter( outputStream ), configuration );
17+
write( new OutputStreamWriter( outputStream, "UTF-8" ), configuration );
1818
}
1919

2020
public void write( Writer writer, PlexusConfiguration configuration )

0 commit comments

Comments
 (0)