Openresty的lua脚本中

say 中文时产生乱码

 

解决方案为:

在conf的location配置中设置

default_type text/html;

charset gbk;

 

修改lua脚本编码格式为

gb2312

即可正常

posted on 2018-04-08 14:25  手抓饼  阅读(2584)  评论(0)    收藏  举报