node.js - 渲染 mysql查询到的数据,中文乱码怎么解决?
高洛峰
高洛峰 2017-04-17 16:28:02
0
2
709
高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
PHPzhong

Start checking from several places

1.后台打印出查询结果、看是否乱码
2.前台network控制台中查看请求、看是否乱码
3.JS中打印、看是否乱码

Check in order. If there is a problem in the first step, it is a problem with mysql settings. If there is a problem in the next two parts, you should also know how to deal with it

迷茫

If it is a mysql query statement-try this

CONVERT(xxx USING utf8)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template