Java. io. FileNotFoundException-step on windows encoding again
Problem
To facilitate file reading, the path is copied directly from the windows File attribute,
Then paste it to eclipse:
On the surface, pathIn and pathIn2 seem to be no different. However, when creating a File object, the system always prompts java. io. FileNotFoundException. An alarm is triggered. This problem was encountered last time but was not solved. The problem we encountered last time was that there could be two files with the same name in a windows price folder !!
It's time to present real technology.
I copied all the strings and wrote a simple html to test them:
See the actual results:
Now it is clear that the previous ";" character is a ghost, and CSDN markdown cannot be used as the character string. There is no space between the semicolon and 4. Search for it:
From left to right?
In the unicode standard, in order to adapt to certain character sets, such as Arabic, the display is from right to left (why? Do they write from right to left? This is indeed the case !! I just checked)
Later, I found that there was actually a small prompt in windows. There was a light gray vertical line in the area pointed by the arrow. However, it is not displayed when it is copied to other places, and all characters in notepad are not displayed, but it is copied.
Windows naming rules. I hope this blog will be helpful.
At the beginning, I had the urge to install Ubuntu on my computer, but I thought about so many development environments (manual goodbye)