jackc / pgx

PostgreSQL driver and toolkit for Go
MIT License
10.83k stars 845 forks source link

simple protocol queries must be run with client_encoding=UTF8 #2174

Open gongxulei opened 8 hours ago

gongxulei commented 8 hours ago

Describe the bug it's not work when pg server param "server_encoding " != utf8.

To Reproduce Steps to reproduce the behavior:

If possible, please provide runnable example such as:

Please run your example with the race detector enabled. For example, go run -race main.go or go test -race.

Expected behavior A clear and concise description of what you expected to happen.

Actual behavior A clear and concise description of what actually happened.

Version

Additional context Add any other context about the problem here.