Ignore:
Timestamp:
2013-12-28T00:30:15+01:00 (11 years ago)
Author:
simon04
Message:

Refactoring: introduce Utils.UTF_8 charset to avoid handling of UnsupportedEncodingException

According to the Javadoc of Charset, every implementation of the Java
platform is required to support UTF-8.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/session/SessionWriter.java

    r6271 r6552  
    225225    public void writeJos(Document doc, OutputStream out) throws IOException {
    226226        try {
    227             OutputStreamWriter writer = new OutputStreamWriter(out, "utf-8");
     227            OutputStreamWriter writer = new OutputStreamWriter(out, Utils.UTF_8);
    228228            writer.write("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
    229229            TransformerFactory transfac = TransformerFactory.newInstance();
Note: See TracChangeset for help on using the changeset viewer.