Skip to content

Instantly share code, notes, and snippets.

@MahefaAbel
Last active February 8, 2022 08:13
Show Gist options
  • Save MahefaAbel/ffe7e1a7d4d7575b2dd239f91cbecb39 to your computer and use it in GitHub Desktop.
Save MahefaAbel/ffe7e1a7d4d7575b2dd239f91cbecb39 to your computer and use it in GitHub Desktop.
Java Charseting
Can We Override the Default Charset?
-Dfile.encoding="UTF-8"
-Dsun.jnu.encoding="UTF-8"
java -Dfile.encoding=utf-8 -jar target\application.jar
@MahefaAbel
Copy link
Author

application.properties

spring.thymeleaf.enabled=true
spring.thymeleaf.encoding=UTF-8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment