New! – Spin up instant copies of your dev databases in the cloud for free Learn more

Flyway Documentation

Poll

Config File Encoding

Description

The file encoding to use when loading Flyway configuration files.

The encodings that Flyway supports are:

  • US-ASCII
  • ISO-8859-1
  • UTF-8
  • UTF-16BE
  • UTF-16LE
  • UTF-16

All your config files must have the same file encoding.

Default

UTF-8

Usage

Commandline

./flyway -configFileEncoding="UTF-16" info

Configuration File

Not available

Environment Variable

FLYWAY_CONFIG_FILE_ENCODING=UTF-16

API

Not available

Gradle

flyway {
    configFileEncoding = 'UTF-16'
}

Maven

<configuration>
    <configFileEncoding>UTF-16</configFileEncoding>
</configuration>