Skip to content

处理含中文的文件,但是文件字符集为iso88591的时候,程序直接close #10

Description

@someonebw

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions