How to fix java when if refused to open a file with special character in filename?

后端 未结 2 1479
臣服心动
臣服心动 2020-12-09 19:20

How to open a file, with a special character which Java refused to open?

At the beginning I guess it was a charset encoding problem as I read the filename wrong from

相关标签:
2条回答
  • 2020-12-09 20:20

    A possible workaround would be to use a system command to either rename or link to the file using only standard "friendly" chars. Seems hacky but I would think it would work.

    0 讨论(0)
  • 2020-12-09 20:27

    Could it be related to File.exists() fails with unicode characters in name

    0 讨论(0)
提交回复
热议问题