Skip to content

Question about jerry_json_parse() encoding #4160

Closed
@clarkttfu

Description

@clarkttfu
JerryScript revision

Identify the git hash(es) or tag(s) where the issue was observed.
2.4.0 (b828d1c)

Hi there,

Does jerry_json_parse() only accept 'cesu-8' string?
Because emoji chars like '🌝' (<Buffer f0 9f 8c 9d>) might crash the process in my tests.

If only 'cesu-8' is supported, it will be great to add another jerry_json_parse_from_utf8().

Thanks,
Clark

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiRelated to the public API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions