When initializing postgreSQL database via application.properties using the data.sql -file, the inserted data with chars (like Ä and ö) that require utf-8 encoding do not get correctly encoded in their respective fields.
So, I have in the application.properties file the following by which to populate the database ...
spring.datasource.initialization-mode=always
spring.datasource.data=classpath:data.sql
...
Spring does the schema creation by:
spring.jpa.hibernate.ddl-auto=create-drop
What else should I define to get those chars to encode utf-8 correctly.
In addition, in pgAdmin properties I can see that the database itself is utf-8 encoded.