Conversion Method for files not read by the Nginx server

Source: Internet
Author: User
: This article mainly introduces how to convert files that the Nginx server cannot read. if you are interested in the PHP Tutorial, refer to it. I. Windows file encoding for GBK encoding, now copied to Linux, Linux use UTF-8 encoding, leading to Nginx server can not read, you can use convmv to modify the file encoding:

The detailed parameters of the convmv command are as follows:

Convmv-f GBK-t UTF-8 *. mp3
However, this command does not convert directly. you can see the comparison before and after conversion. If you want to add the parameter -- notest to the direct conversion
Convmv-f GBK-t UTF-8 -- notest *. mp3
-F indicates the encoding before conversion, and-t indicates the encoding after conversion. Do not make a mistake. Otherwise it may be garbled.

Copyright Disclaimer: This article is an article by Dr. Jian Binyuan, and cannot be reproduced without the permission of the blogger.

The above describes how to convert files that the Nginx server cannot read, including some content. if you are interested in the PHP Tutorial.

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.