Charset for single text file

Hi,

inside my web site structure there is a single plain text file that needs to be served as charset iso-8859-1. My web server is configured accordingly.

But I cannot process it in Middleman. If I put a text file with encoding iso-8859-1 in a folder within source (so that it gets copied to the same folder in build/), Middleman fails to do that because it encountered illegal UTF-8.

Can I configure that file (maybe with front matter), so that Middleman processes it in another charset?

Maybe try to ignore this file in config.rb and then copy it from source to build with after_build trigger?

# CONFIG.RB

# ignore part
  ignore "/path/to/file.txt"

# After build hooks
after_build do |builder|
  puts "Copying files after build…"
  system("cp #{config[:source]+'/path/to/file.txt'} #{config[:build_dir]+'/path/to/'}")
end

But I wonder how the ISO 8859-1 file is not working since it’s no special-characters encoding. Surely it doesn’t have the BOM mark, maybe Ruby is expecting this?