You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This specific behavior has been around since Encoding was added.
To fix this particular example, would probably just need an entry: enc2025: simplifiedchinese.HZGB2312,
Though I wonder if there's a way to generate the encodings from a public source.
// TODO: the coverage of this index is rather spotty. Allowing users to set
// encodings would allow:
// - users to increase coverage
// - allow a partially loaded set of encodings in case the user doesn't need to
// them all.
// - write an OS-specific wrapper for supported encodings and set them.
Using the
golang.org/x/text/encoding/ianaindex
package.I believe it should be returning simplifiedchinese.HZBG2312.
cc @mpvl
The text was updated successfully, but these errors were encountered: