Closed a1375625918 closed 1 year ago
U need to set the encoding of your java VM to UTF-8
I added -Dfile.encoding=UTF-8
in the command line like this but nothing changed.
java.exe -Dfile.encoding=UTF-8 -jar server.jar
Not sure if I'm doing the right thing.
use a text editor that supports that encoding like Notepad++ and not the windows editor, and edit it again
messages.yml
is the default one and I haven't modified it before.
VSCode said it's already UTF-8 and I tried to switch the default CRLF eol sequence to LF. The result is the same as before.
If I replace YAML list style lines with \n
, everything goes as expected.
BTW adding a prefix and suffix section will be easier for operator to manage title and contact information.
prefix:
- "&fᛃ &4&LU&c&LA&4&LB &fᛃ"
- ""
suffix:
- ""
- "&cDiscord &7» &c&ndiscord.myserver.com"
- "&c&nmc.yourserver.net"
blacklisted:
- "&7You have been blacklisted by the &cAntibot System"
- "&7Contact us on discord providing your &cid&7 to be able to &cplay!"
- ""
- "&cReason &7» &c$1"
- "&cID &7» &c$2"
System.lineSeparator()
returns "\r\n" on Windows.
Replace it with "\n" may solve my problem, but I don't know if this will cause more problems.
I will rework the method
done
Can these CR characters in boxes at the end of the line be removed?