-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
UTF8Reader throw "Need to move partially decoded character; buffer not modifiable" when read only one chinese char #497
Comments
Ok thank you for reporting the problem! Check is there for a reason so removing check would be dangerous (unless verifying it is not needed). I think to note is that version 2.12 is rather old: latest released is 2.17.2. I'll need to see if I can reproduce the issue with it -- ideally you would have tried it out before submitting. But I can do it now, given you provided a reproduction (which is good!). |
Ok I can see the problem: the last character of input is a 3-byte UTF-8 character, and code is trying to load at least one more byte. This is not right as 3 bytes should be sufficient for decoding. But not sure of an easy way to solve this; need to think about it a bit. |
Forgot to mention: 2.17.2 (and now 2.18.0) still fail, but give bit more useful exception message at least. |
jackson-dataformat-csv 2.12.4
The text was updated successfully, but these errors were encountered: