Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix response encoding to explicitly use UTF-8 for HTTP response data (P…
…roject-MONAI#1672) Previously, the code used `response.getBytes()` which might rely on the platform's default charset to encode the HTTP response data, leading to inconsistent behavior across platforms. This commit updates the code to use `response.getBytes(StandardCharsets.UTF_8)`, specifying UTF-8 encoding explicitly for processing response data. This ensures cross-platform consistency and avoids potential encoding issues. Signed-off-by: Butui Hu <[email protected]>
- Loading branch information