I used the -Dfile.encoding=UTF-8 jvm option, so wildfly pick it up when it starts. It worked for me.
David Kireev wrote:
What am I missing? Is there any javax.persistence.* property to specify encoding of script files?
Keep a watch on this enhancement request https://hibernate.atlassian.net/browse/HHH-10972
Thanks a lot, jaikiran pai! Sorry, it took me too long to see your post.
But I'm still not happy about their decision to use the default JVM encoding instead of the file.encoding property's value when the Hibernate-specific configuration property isn't set
Did you do any further work on your pull request?
David Kireev wrote:Did you do any further work on your pull request?
I actually forgot about that in other things. I'll get to it this week.
I'll be really grateful!
The Hibernate team themselves have fixed this issue last week [HHH-10972] Use UTF-8 charset for reading files for initializing the database (javax.persistence.sql-load-script-source …
Here's the change https://github.com/hibernate/hibernate-orm/pull/1551