我正在使用 FileUtils.readFileToString 一次读取带有 JSON 的文本文件的内容。该文件采用 UTF-8 编码(无 BOM)。然而,我得到的不是西里尔字母??????迹象。为什么?
public String getJSON() throws IOException
{
File customersFile = new File(this.STORAGE_FILE_PATH);
return FileUtils.readFileToString(customersFile, StandardCharsets.UTF_8);
}