Home  >  Article  >  Backend Development  >  Nginx server cannot read the file conversion method

Nginx server cannot read the file conversion method

WBOY
WBOYOriginal
2016-07-30 13:30:081455browse

1. The file encoding in Windows is GBK encoding. Now copy it to Linux. The UTF-8 encoding used by Linux cannot be read by the Nginx server. You can use convmv to modify the file encoding:

Detailed parameters of convmv command For example

<span><span>convmv -f GBK -t UTF-8 *.mp3</span></span>
<span><span>不过这个命令不会直正的转换,你可以看到转换前后的对比。如果要直正的转换要加上参数 --notest</span></span>
<span><span>convmv -f GBK -t UTF-8 --notest *.mp3</span></span>
<span>-f 参数是指出转换前的编码,-t 是转换后的编码。这个千万不要弄错了。不然可能还是乱码哦。</span>

Copyright statement: This article is an original article by blogger Nie Jianbin and may not be reproduced without the permission of the blogger.

The above introduces the conversion method for files that cannot be read by the Nginx server, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Constants in PHPNext article:Constants in PHP