java 在使用getresource获取中午目录时,出现乱码的处理

String inputFileName = BufferedDataSetSample.class.getResource("data/iris_data_normalised.txt").getFile();

try {
            inputFileName=  java.net.URLDecoder.decode(inputFileName,"utf-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }

相关文章:

  • 2022-12-23
  • 2021-06-12
  • 2022-01-08
  • 2021-08-25
  • 2022-01-15
猜你喜欢
  • 2021-06-11
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-06-02
  • 2021-08-23
相关资源
相似解决方案