Skip to content

Encoding issue in VPack serializer #70

Closed
@miguel-porto

Description

@miguel-porto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions