Deep Mob Evolution

Deep Mob Evolution

618k Downloads

[Bug?] Json config file are not loaded in utf-8 format

Forever-178 opened this issue ยท 0 comments

commented

In this piece of code, class FileReader read file in system default charset but not UTF-8. (On the Simple Chinese Windows System, charset is GBK)
A solution is replacing new FileReader(file); with new InputStreamReader(new FileInputStream(file), StandardCharsets.UTF_8);