Java. io. FileNotFoundException-step on windows encoding again

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.