Incorrectly assumed encoding when accessing content with project.resources.text.fromUri
on Windows
#25213
Labels
project.resources.text.fromUri
on Windows
#25213
Expected Behavior
Fetch text file in proper
UTF-8
encoding.Current Behavior
Gradle downloads resources from the remote location in incorrect encoding — probably falls back to the OS default encoding instead of the one provided by the server or
UTF-8
.Context (optional)
No response
Steps to Reproduce
Create and run the following task:
This task should create the
build/tmp/testEncoding/wrappedInternalText....txt
file with the following content:Instead, it provides a file with:
Gradle version
8.1.1
Build scan URL (optional)
Windows 11
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: