Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Character encoding problem when using sqlFile

$
0
0
I am trying to read SQL files in liquibase using the sqlFile tag. The problem is that when I use the updateSQL command all the non latin characters are replaced by question marks.

  1. <changeSet id="1-data" author="myName">
          <sqlFile encoding="UTF-8" path="file.sql"/>
    </changeSet>
I use maven and configured the liquibase-maven-plugin as follows :
  1.             <plugin>
                    <groupId>org.liquibase</groupId>
                    <artifactId>liquibase-maven-plugin</artifactId>
                    <configuration>
                        <propertyFile>src/main/resources/dbSharedTables/liquibase/liquibase.properties</propertyFile>
                        <defaultSchemaName>EURES3</defaultSchemaName>
                        <systemProperties>
                            <property>
                                <name>liquibase.databaseChangeLogTableName</name>
                                <value>X_DATABASECHANGELOG</value>
                            </property>
                            <property>
                                <name>liquibase.databaseChangeLogLockTableName</name>
                                <value>X_DATABASECHANGELOGLOCK</value>
                            </property>
                            <property>
                                <name>file.encoding</name>
                                <value>UTF-8</value>
                            </property>
                        </systemProperties>
                    </configuration>
Version of liquibase : 2.0.2

Does anybody have an idea of what's going on ?

Thank you,

Cédric

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>