Skip to content

x/text: ianaindex returns no encoding for gb2312 #24636

Description

@crawshaw

Using the golang.org/x/text/encoding/ianaindex package.

        encoding, err := ianaindex.MIME.Encoding("gb2312")
        fmt.Println(encoding, err) // prints <nil> <nil>

I believe it should be returning simplifiedchinese.HZBG2312.

cc @mpvl

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions