Java java.io.filenotfoundexception for file path with cyrillic characters
问题 I have a file whose name contains characters not only from the plain ASCII character set, but also from a non-ASCII character set. In my case it contains Cyrillic characters. Here's a snippet of my code: String fileName = "/Users/dnelepov/Downloads/тест изображение.png"; File sendFile = new File(fileName); if (sendFile.exists()) { // Some code } The code in sendFile.exists if block is not being executed. Why isn't the file recognized? My system configuration locale LANG="ru_RU.UTF-8" LC