maciejwalkowiak / just

Magical 🪄 command line toolkit for developing 🍃 Spring Boot apps
311 stars 5 forks source link

HTTP responses with "application/json" MIME type seem to be rendered with ISO-8859-1 instead of UTF-8 #51

Open BjoernKW opened 1 year ago

BjoernKW commented 1 year ago

When using just run HTTP responses with "application/json" MIME type seem to be rendered using ISO-8859-1 instead of UTF-8. This might affect other MIME types (such as "application/xml"), too. HTML responses are rendered fine, though (using Thymeleaf in my case).

For example, when running this sample application with just run and accessing the http://localhost:8080/book endpoint, some characters are garbled: https://github.com/workshops-de/Bookshelf_sample_solution

When using mvn spring-boot:run with the same application character encoding works as expected (UTF-8).

BjoernKW commented 1 year ago

The easiest way to verify this behaviour is to use the Extend_BookRestController branch / tag (since the main branch depends on a database connection).