Skip to content

Bug with encoding hex characters with letters #56

Open
@Fabimawn

Description

@Fabimawn

The line: local testStr = jsonLua.encode("\x03test\x7a")
Outputs: "\u0003testz"

The first HEX charater is converted correctly, the second one isn't. If I make the second one a HEX only consisting of a number it converts correctly.
It doesn't matter if you use upper or lower case, alphanumerics in the HEX character doesn't seem to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions