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

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

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

原文地址:https://www.cnblogs.com/nightnine/p/13813303.html