After upgrading from Gradle 8.11.1 -> 9.0.0 som...
# community-support
h
After upgrading from Gradle 8.11.1 -> 9.0.0 some UTF-8 characters in html are not rendering properly. The following two images is one example of what a before-and-after picture looks like.
c
some UTF-8 characters in html
what html? something built by Gradle - Javadoc? In your app at runtime?
h
The utf-8 character is in a Velocity template <span class="logo-emoji">☁️🔧</span>
It's a Spring Boot project, and the jar is built by Gradle. I've tried 9.0.0, 9.1.0, and 9.2.0-rc-1 and they all have the same problem. If I roll back to 8.14.3, the problem goes away.
c
Have you compared the packaged template between builds to isolate specific differences?
h
I'm in the process of getting the jars.
👍 1
The only file with any differences is META-INF/build-info.properties and it's build time and version so there is something else going on. I just checked the container and all installed package versions are identical.
We solved the problem, but we don't know why we need to do this. When using Gradle 9 we need to explicity set the UTF-8 encoding when bootstrapping Velocity. Don't know what changed, but this fixes the issue.
👍 1