使用koa/node调试的时候,打印ctx.body/response.body内容
console.log(
ctx.body.toString("utf8")
)
会遇到中文乱码的情况
这可能只是调试器中显示的问题
直接忽略
使用koa/node调试的时候,打印ctx.body/response.body内容
console.log(
ctx.body.toString("utf8")
)
会遇到中文乱码的情况
这可能只是调试器中显示的问题
直接忽略
本文标题:nodejs/Koa 在调试器中出现的中文乱码假象
本文链接:https://www.haomeiwen.com/subject/xtpwcqtx.html
网友评论