The Problem of String Scrambling in golang

  golang, question

Golang encountered a string garbled problem.
The error was reported as follows

invalid byte 'ä' in Cookie.Value;  dropping invalid bytes

When a person’s user nickname string contains a special character ★ and then writes a cookie. I reported the above mistake.
Please help from experienced people! ! !

Url.QueryEscape ()