Skip to content

How to ignore characters that have not been successfully encoded? #100

@mzdk100

Description

@mzdk100

My code is

let (text, _, _) = GBK.encode("abc‎");
dbg!(&text);

Output:

&text = [
    97,
    98,
    99,
    38,
    35,
    56,
    50,
    48,
    54,
    59,
]

The encoded text is actually "abc‎". How do I discard "‎"?

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