Commit c7094f41 authored by Cyrille Poncelet's avatar Cyrille Poncelet
Browse files

for UTF8 for decoding

parent 30fd3447
......@@ -8,6 +8,8 @@ import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.Writer;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.Paths;
import java.util.Arrays;
......@@ -81,7 +83,7 @@ public class CodeGenerator {
public static Group readJson(String file_name) throws FileNotFoundException, IOException
{
try (Reader reader=new InputStreamReader(new FileInputStream(file_name))){
try (Reader reader=new InputStreamReader(new FileInputStream(file_name),StandardCharsets.UTF_8)){
Gson gson=getGson();
Group root=gson.fromJson(reader, Group.class);
return root;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment