-
1. Re: file.encoding for sql-load-script-source
bb bb Jul 25, 2016 1:28 PM (in response to David Kireev)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 pai Jul 29, 2016 9:35 AM (in response to David Kireev)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
David Kireev Aug 31, 2016 8:48 PM (in response to jaikiran pai)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 pai Sep 1, 2016 1:05 AM (in response to David Kireev)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
David Kireev Sep 1, 2016 5:11 AM (in response to jaikiran pai)I'll be really grateful!
-
6. Re: file.encoding for sql-load-script-source
jaikiran pai Sep 20, 2016 1:58 AM (in response to David Kireev)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