Skip to content

Encoding issue in VPack serializer #70

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

Closed
miguel-porto opened this issue Nov 8, 2016 · 2 comments
Closed

Encoding issue in VPack serializer #70

miguel-porto opened this issue Nov 8, 2016 · 2 comments
Milestone

Comments

@miguel-porto
Copy link
Contributor

Hi,
there seems to be an encoding issue in util().serialize(...). Take these lines, assuming that newTaxEnt has the string "açb" in field author

System.out.println(newTaxEnt.getAuthor());    // outputs açb
VPackSlice value = dbDriver.util().serialize(newTaxEnt, false);
System.out.println(value.get("author").getAsString());    // outputs aç

The actual value stored in the database is also truncated.
Is it a problem in the serializer, or am I assumed to encode the string in other way before passing it?
Best,
Miguel

@miguel-porto
Copy link
Contributor Author

Maybe this has been fixed with #65 ?

@mvollmary
Copy link

Yes. I fixed it with version 4.1.1 which was released today.

@mvollmary mvollmary added this to the 4.1.1 milestone Nov 9, 2016
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

2 participants