Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken string parsing in Byte consumers #7

Open
Ichoran opened this issue Dec 13, 2017 · 0 comments
Open

Broken string parsing in Byte consumers #7

Ichoran opened this issue Dec 13, 2017 · 0 comments

Comments

@Ichoran
Copy link
Owner

Ichoran commented Dec 13, 2017

As reported by Andriy Plokhotnyuk, both the ByteBuffer and the ByteArrayInputStream (i.e. RecyclingParser) versions fail on the following input:

""""倒排索引(英语:Inverted index),也常被称为反向索引、置入档案或反向档案,是一种索引方法,被用来存储在全文搜索下某个单词在一个文档或者一组文档中的存储位置的映射。它是文档检索系统中最常用的数据结构。"""".getBytes

JsonRecyclingParser has the worse error in that it fails to even parse the string; JsonByteBufferParser parses successfully but encodes all the content as \uffXX where XX is the raw UTF-8 byte value.

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

No branches or pull requests

1 participant