Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #33 from ncats/utf8jsonExport
Browse files Browse the repository at this point in the history
force json export to be utf8
  • Loading branch information
tylerperyea authored Mar 1, 2021
2 parents a375f9d + 6ad9183 commit b5f90f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/ginas/app/ix/ginas/exporters/JsonExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public class JsonExporter implements Exporter<Substance> {

public JsonExporter(OutputStream out) throws IOException{
Objects.requireNonNull(out);
this.out = new BufferedWriter(new OutputStreamWriter(out));
//JSON must be in UTF-XX format
this.out = new BufferedWriter(new OutputStreamWriter(out, "UTF-8"));
}
@Override
public void export(Substance obj) throws IOException {
Expand Down

0 comments on commit b5f90f5

Please sign in to comment.