File encoding format detection and encoding format Detection

Source: Internet
Author: User

File encoding format detection and encoding format Detection

In the php and windows development environments, the server is a linux environment, and the UTF-8 BOM problem is often encountered (utf8 signature and no signature). If you have encountered any problems before, you should first check and sometimes forget it, later, I tested this small tool, because I was familiar with C #, so I used C.

You can check the encoding format of the code file with the specified Suffix in a directory. You can double-click an item in the list or right-click it to view or save it as utf8 without signature encoding.

Source code uploaded to https://github.com/lrj525/FileEncodingTool

Current problems:

The Program identifies the possibility of file encoding.

It is found that if there is a Chinese (non-pure English) recognition rate is the best, even if the utf8 is saved in pure English, it will be displayed as ASCII, but it will not be encoded in pure English.

Welcome to join us in research

Below are some

 

Related Article

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.