Elixir release fails with umlauts in config.exs

My app release crashes because of umlauts used in config.exs:

{"could not start kernel pid",application_controller,"error in config file \"/Users/mario/Code/Me/app/_build/dev/rel/app/tmp/app-b7c1187-20190926182511-0c2b.runtime.config\" (none): bad encoding"}

My config.exs

config :app, :shifts, %{
  "Spätschicht" => # …

is compiled to a broken

<<"Sp?tschicht">> =>

Any ideas how to fix this?

Please make sure your file is properly saved UTF8 encoded without BOM.

1 Like