Skip to content

net/url: URL.String() escapes Unicode domain #65999

@sollniss

Description

@sollniss

Go version

go version go1.22.0 windows/amd64

Output of go env in your module/workspace:

GO111MODULE=
GOARCH=amd64
GOBIN=
GOCACHE=C:\Users\solln\AppData\Local\go-build
GOENV=C:\Users\solln\AppData\Roaming\go\env
GOEXE=.exe
GOEXPERIMENT=
GOFLAGS=
GOHOSTARCH=amd64

What did you do?

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

What did you see happen?

http://%E3%81%82%E3%81%84%E3%81%86.com/

What did you expect to see?

http://あいう.com/
or
http://xn--l8jeg.com/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions