Open sanhe-qigai opened 2 months ago
This is not a code example issue. Looks like a S3 Doc issue. I will reassign.
这不是代码示例问题。看起来像是 S3 Doc 问题。我会重新分配。
I would like to add that this should be a bug, because the char in JAVA is 16 bits, and one char stores one Chinese character. Directly converting it using the writeBytes method will become 8 bits, which directly causes the loss of the upper 8 bits. This leads to garbled Chinese characters.
Expected behavior
Hello, I found a bug in the package "AWSS3SigV4JavaSamples.zip". I downloaded this package from "https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-examples-using-sdks.html#sig-v4-examples-using-sdk-java". when i upload to s3 ,I use PutS3ObjectSample.java
Actual behavior
<?xml version="1.0" encoding="UTF-8"?>
XAmzContentSHA256Mismatch
Steps to reproduce
Logs / stacktrace (if applicable)
Which SDK were you using?
Java
Which OS were you using?
macOS
SDK version
No response
OS version
No response