nginx 中文乱码
时间: 2023-08-25 19:05:14 浏览: 126
中文乱码问题
nginx中文乱码问题通常是由于字符编码设置不正确导致的。在nginx.conf文件中,需要确保server层和访问路径location都设置了utf-8编码格式。例如,可以在server层中添加以下配置:<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [nginx访问页面 中文乱码 解决方案](https://blog.csdn.net/weixin_42350212/article/details/107359891)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [nginx访问页面中文乱码解决方案](https://blog.csdn.net/KingOfOnePiece/article/details/130257295)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文