Closed c-goldschmidt closed 4 years ago
Hello,
What is the value of config variable "language" ?
Someone got the same error one month ago. https://www.spigotmc.org/threads/serversigns.84210/page-11#post-3619505
It's a really strange bug, maybe one of files has the wrong file encoding.
I will try to reproduce the bug.
Best regards, EpiCanard
@EpiCanard it's set to "en_default". Maybe it's worth mentioning that i am running my server on Ubuntu 16.04.6 LTS (in a VM)
[EDIT]
file -i en_default.yml
en_default.yml: text/plain; charset=us-ascii
the written file seems to be ascii encoded
If you try to encode it in utf-8 ?
That won't work as the files are rewritten on startup. Also it happens during writing the french file. It crashes as soon as the first non-ascii character is written to the file.
It seems that defaultCharset you changed inside PR is affected by operating system
Not only that, probably it's also affected by the system language, as i guess a french unbuntu would be able to output the french file. But yea, after the change it's always using UTF-8. You should maybe also check for other uses of defaultCharset, as on english systems this seems to be us-ascii by default. No idea if any other uses would try to write non-english text though, because i think they just write config, which contains only english data.
Review done
Merged, It will maybe take time before release I have a feature to finish first. Thanks for your contribution :)
Fixed and released in v4.6.0
Looks like the embedded translation files are somewhat corrupt?