Problem Statement:
I have a file containing Japanese characters located in my Google Cloud Storage Bucket. While downloading and printing the contents of the same, I find that the Japanese characters turn into ???.
I am specifying UTF-8 as the charset in the code. Please help.
Code:
Blob blob = storage.get(BlobId.of(blobPath, fileName));
LOGGER.info("Blob received with name {}" ,blob.getName());
return new String(blob.getContent(), StandardCharsets.UTF_8);