ruanwenjun opened a new issue #6276: URL: https://github.com/apache/dolphinscheduler/issues/6276
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description You can find the code in org.apache.dolphinscheduler.common.utils.FileUtils https://github.com/apache/dolphinscheduler/blob/69a153c5f5c9d91b4eececbcfbf9e2fb407f89c4/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/FileUtils.java#L234-L254 The `output.toString()` method will use the system' default charset to deserialize the byte to string. This may cause a problem if we use UTF-8 to write a string to a file and use this method to read the file. related issue #6273, fix FileUtilsTest#testWriteContent2File ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
