I have this Java code where a config.yaml should get generated with a custom header, which contains various ASCII characters, such as ASCII-219. Homewer when i compile the plugin and look into the config.yml, the characters get just replaced with question marks. I've already looked into my IntelliJ IDEA file encoding and it's set to UTF8.
I've tried to use UTF-8 with BOM
FileConfiguration config = main.plugin.getConfig();
getConfig().options().header(
" █████▒▄▄▄ ██▓ ██▓ ▓█████ ███▄ █ ██████ █ ██ ██▀███ ██▒ █▓ ██▓ ██▒ █▓ ▒█████ ██▀███ " + "\n" +
" ▓██ ▒▒████▄ ▓██▒ ▓██▒ ▓█ ▀ ██ ▀█ █ ▒██ ▒ ██ ▓██▒▓██ ▒ ██▒▓██░ █▒▓██▒▓██░ █▒▒██▒ ██▒▓██ ▒ ██▒ " + "\n" +
" ▒████ ░▒██ ▀█▄ ▒██░ ▒██░ ▒███ ▓██ ▀█ ██▒░ ▓██▄ ▓██ ▒██░▓██ ░▄█ ▒ ▓██ █▒░▒██▒ ▓██ █▒░▒██░ ██▒▓██ ░▄█ ▒ " + "\n" +
" ░▓█▒ ░░██▄▄▄▄██ ▒██░ ▒██░ ▒▓█ ▄▓██▒ ▐▌██▒ ▒ ██▒▓▓█ ░██░▒██▀▀█▄ ▒██ █░░░██░ ▒██ █░░▒██ ██░▒██▀▀█▄ " + "\n" +
" ░▒█░ ▓█ ▓██▒░██████▒░██████▒░▒████▒██░ ▓██░▒██████▒▒▒▒█████▓ ░██▓ ▒██▒ ▒▀█░ ░██░ ▒▀█░ ░ ████▓▒░░██▓ ▒██▒ " + "\n" +
"▒ ░ ▒▒ ▓▒█░░ ▒░▓ ░░ ▒░▓ ░░░ ▒░ ░ ▒░ ▒ ▒ ▒ ▒▓▒ ▒ ░░▒▓▒ ▒ ▒ ░ ▒▓ ░▒▓░ ░ ▐░ ░▓ ░ ▐░ ░ ▒░▒░▒░ ░ ▒▓ ░▒▓░ " + "\n" +
"░ ▒ ▒▒ ░░ ░ ▒ ░░ ░ ▒ ░ ░ ░ ░ ░░ ░ ▒░░ ░▒ ░ ░░░▒░ ░ ░ ░▒ ░ ▒░ ░ ░░ ▒ ░ ░ ░░ ░ ▒ ▒░ ░▒ ░ ▒░ " + "\n" +
"░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░░░ ░ ░ ░░ ░ ░░ ▒ ░ ░░ ░ ░ ░ ▒ ░░ ░ " + "\n" +
"░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ " + "\n" +
"░ ░ " + "\n" +
"Plugin BETA 1.0.0/ " + "\n" +
"FallenSurvivor is made by FendiTony777, all rights are reserved to him. " + "\n" +
"You can contact me from the discord link provided. " + "\n" +
"--------------------------------------------- " + "\n"
);```