Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

zhongwencool
Copy link
Contributor

@zhongwencool zhongwencool commented Sep 7, 2022

Throw more clear logs for scanning invalid utf8.

We can't guarantee that it's all invalid utf8 when the Input is from HTTP API.

5.0.7-gfdbf8c1c(emqx@127.0.0.1)>jsx:decode(<<"{\"test\":\"® \"}"/utf8>>).
#{<<"test">> => <<"® "/utf8>>}
5.0.7-gfdbf8c1c(emqx@127.0.0.1)2> jsx:decode(<<"{\"test\":\"® \"}">>).
#{<<"test">> => <<239,191,189,32>>}

@zhongwencool zhongwencool force-pushed the scan-invalid-utf8-error branch from 7d134c6 to 8772fa6 Compare September 7, 2022 08:13
@zhongwencool zhongwencool merged commit 900ce56 into master Nov 28, 2022
@zhongwencool zhongwencool deleted the scan-invalid-utf8-error branch November 28, 2022 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants