Skip to content

utf-8 valid char not supported in string in Native #94

Description

@julianzamt

Describe the bug
Passing Chévere as a string param in Native throws with:
panicked at \'called Result::unwrap()on anErr value: Custom { kind: InvalidData, error: "invalid utf-8 sequence of 1 bytes from index 2" }\'

In Anchor the same string works fine.

To Reproduce
Anchor test, works fine:
image

Native test, fails:
image

Expected behavior
To allow any utf-8 char in a string in native.

Platform version:

  • CLI Version [e.g. v0.1.0]
  • GenService Version v0.8

Extension (mark with an X the extension):

  • Solana Native [x]
  • Solana Anchor [ ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    BacklogStuff to be done in the futureBugThis is an item that causes unwanted behavior

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions