UTF-8 encoding of application.properties attributes in Spring-Boot

后端 未结 5 1813
没有蜡笔的小新
没有蜡笔的小新 2020-12-15 05:05

In my application.properties I add some custom attributes.

custom.mail.property.subject-message=This is a ä ö ü ß problem

In t

5条回答
  •  轮回少年
    2020-12-15 05:35

    As already mentioned in the comments .properties files are expected to be encoded in ISO 8859-1. One can use unicode escapes to specify other characters. There is also a tool available to do the conversion. This can for instance be used in the automatic build so that you still can use your favorite encoding in the source.

提交回复
热议问题