nginx-gui icon indicating copy to clipboard operation
nginx-gui copied to clipboard

nginx.conf内有中文,显示为乱码

Open merlin2002 opened this issue 5 years ago • 1 comments

nginx.conf 规则配置上有中文注释,显示未乱码 如nginx.conf含有配置 server { listen 8250; server_name 172.168.30.30; charset utf-8,gbk;

    location /log {
        alias logs;
        #打开目录浏览功能
        autoindex on;
        autoindex_exact_size off;
        autoindex_localtime on;
        add_header Cache-Control no-store;
    }
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }
}

“#打开目录浏览功能“ 显示未乱码:鎵撳紑鐩綍娴忚鍔熻兘

merlin2002 avatar Jan 10 '20 09:01 merlin2002

你可以在startup.bat/sgart.sh启动文件中指定文件编码;具体操作是在"%PROJECT_HOME%/lib/bin/java_vms_nginx_gui"指令后面新增命令:-Dfile.encoding=UTF-8就可以了

zizhulinsanren avatar Jun 01 '21 01:06 zizhulinsanren