Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>When creating the reader for that file, Hibernate uses <code>new InputStreamReader(stream);</code> directly, without explicit encoding (the default execution platform charset encoding is assumed/used).</p> <p><strong>So, in other words, your <code>import.sql</code> file must be in the default <em>execution</em> platform charset encoding.</strong></p> <p>There is an old (2006!) open issue for this, in case one wishes to send a patch: <a href="https://hibernate.atlassian.net/browse/HBX-711" rel="nofollow noreferrer">https://hibernate.atlassian.net/browse/HBX-711</a></p> <hr> <p>Options to fix:</p> <ul> <li><p>Add <code>-Dfile.encoding=UTF-8</code> to the <code>JAVA_OPTS</code> environment variable, such as:</p> <pre><code># Linux/Unix export JAVA_OPTS=-Dfile.encoding=UTF-8 # Windows set JAVA_OPTS=-Dfile.encoding=UTF-8 # Attention, check before if your JAVA_OPTS doesnt already have a value. If so, # then it should be export JAVA_OPTS=$JAVA_OPTS -Dfile.encoding=UTF-8 # or set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8 </code></pre></li> <li><p>Set a property in your Maven plugin (could be <code>surefire</code>, <code>failsafe</code> or other, depending on how do you run the code that imports the hibernate file). Example for <code>surefire</code>:</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt; &lt;configuration&gt; &lt;argLine&gt;-Dfile.encoding=UTF8&lt;/argLine&gt; &lt;/configuration&gt; &lt;/plugin&gt; </code></pre></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload