-
1. Re: file.encoding for sql-load-script-source
babazs Jul 25, 2016 1:28 PM (in response to kireevdavid80)Hi!
I used the -Dfile.encoding=UTF-8 jvm option, so wildfly pick it up when it starts. It worked for me.
<configuration>
<jboss-home>c:\web\wildfly-10.0.0.Final\</jboss-home>
<javaOpts>
<javaOpt>-Dfile.encoding=UTF-8</javaOpt>
</javaOpts>
.... !
-
2. Re: file.encoding for sql-load-script-source
jaikiran Jul 29, 2016 9:35 AM (in response to kireevdavid80)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
-
3. Re: file.encoding for sql-load-script-source
kireevdavid80 Aug 31, 2016 8:48 PM (in response to jaikiran)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?
-
4. Re: file.encoding for sql-load-script-source
jaikiran Sep 1, 2016 1:05 AM (in response to kireevdavid80)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.
-
5. Re: file.encoding for sql-load-script-source
kireevdavid80 Sep 1, 2016 5:11 AM (in response to jaikiran)I'll be really grateful!
-
6. Re: file.encoding for sql-load-script-source
jaikiran Sep 20, 2016 1:58 AM (in response to kireevdavid80)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