Want more control over your database deployments? – Find out how with Carlos Robles at Redgate Summit Register now

Flyway Documentation

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>