Skip to content

Commit

Permalink
Merge pull request java-decompiler#23 from Alien-AV/master
Browse files Browse the repository at this point in the history
Make UTF-8 export to file correctly
  • Loading branch information
emmanue1 committed May 22, 2015
2 parents 617ba9b + a02904b commit cdc6a86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ class ClassFilePage
}

void save(API api, OutputStream os) {
os << textArea.text
OutputStreamWriter w = new OutputStreamWriter(os, "UTF-8");
w.write(textArea.text);
w.close();
}

// --- IndexesChangeListener --- //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void save(API api, Controller controller, Listener listener, Path path, C

// Init printer
baos.reset();
PrintStream ps = new PrintStream(baos);
PrintStream ps = new PrintStream(baos,true,"UTF-8");
printer.setPrintStream(ps);
printer.setPreferences(preferences);

Expand Down

0 comments on commit cdc6a86

Please sign in to comment.