Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/text/encoding: gbk encoding can not encoding rune 0x1E3F #50088

Closed
xiongjiwei opened this issue Dec 10, 2021 · 1 comment
Closed

x/text/encoding: gbk encoding can not encoding rune 0x1E3F #50088

xiongjiwei opened this issue Dec 10, 2021 · 1 comment

Comments

@xiongjiwei
Copy link

xiongjiwei commented Dec 10, 2021

What did you do?

https://go.dev/play/p/6Fi9SmefcEG

What did you expect to see?

according to https://github.com/whatwg/encoding/blob/be3337450e7df1c49dca7872153c4c4670dd8256/index-gb18030.txt#L7540. Rune 0x1E3F can be decoded and encoded.

What did you see instead?

@gopherbot gopherbot added this to the Unreleased milestone Dec 10, 2021
@xiongjiwei xiongjiwei changed the title x/text/encoding: gbk encoding can not encoding rune 0x1E3F x/text/encoding: gbk encoding can not encoding rune 0x1E3F Dec 10, 2021
@seankhliao
Copy link
Member

The whatwg spec you linked is for GB18030 not GBK

https://go.dev/play/p/aBqMLoCfFy1

@golang golang locked and limited conversation to collaborators Dec 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants