让Linux中的Nginx支持中文文件名

原文:https://blog.csdn.net/soeben/article/details/79525964

首先你的服务器需要安装了UTF-8字符集
在命令行里输入env|grep LANG
如果显示en_US.UTF-8则说明已安装

1.在nginx的配置文件中添加charset utf-8; 并使其生效

  

server {
  listen 80;
  server_name csdn.net;
  charset utf-8;
  ……


2.重新以UTF-8方式上传文件,以Xftp举例
点击属性->选项->勾选使用UTF-8编码


Xftp设置UTF-8

原文地址:https://www.cnblogs.com/shihaiming/p/11826095.html