test-iso88591.txt: text/plain; charset=iso-8859-1
test-utf-8.txt: text/plain; charset=utf-8
[root@node96 test]# hexdump -C test-utf-8.txt
00000000 74 65 73 74 c3 96 c3 90 |test....|
00000008
[root@node96 test]# hexdump -C test-iso88591.txt
00000000 74 65 73 74 d6 d0 |test..|
00000006
在页面上面会报错,websocket被close
WebSocket connection to 'ws://x.x.x.x:9527/ws' failed: Could not decode a text frame as UTF-8.