datastrato / gravitino

World's most powerful data catalog service with providing a high-performance, geo-distributed and federated metadata lake.
https://datastrato.ai/docs/
Apache License 2.0
347 stars 150 forks source link

[#3165] fix(client-java): Fix the http client `toJson` encode without UTF-8 #3240

Closed jerryshao closed 2 weeks ago

jerryshao commented 2 weeks ago

What changes were proposed in this pull request?

Currently in the java client, the json result is not encoded with UTF-8 when requesting the server, which will cause some Chinese characters to be garbled.It will use ISO_8859_1 as default. This PR fixed this. image

Why are the changes needed?

Fix: #3165

How was this patch tested?

Add some ITs.