【学习笔记】websocket报Could not decode a text frame as UTF-8问题

1.今天在调试身份证模块时EXE的Websocket服务器,在给浏览器回数据时出现错误

websocket报Could not decode a text frame as UTF-8,检查调试发现逻辑没有问题
最后发现回复的数据中是包含中文的,所以去掉中文后,恢复正常

posted @ 2020-10-14 10:17  dozeoo  阅读(1284)  评论(0编辑  收藏  举报