-
Notifications
You must be signed in to change notification settings - Fork 37
Show local characters in Windows Console
If you are using WebConsole in a Minecraft Server hosted in a PC running Microsoft Windows, you will probably notice that if you change plugin's language from English to your local one (as Spanish, Portuguese, Russian, etc), it may output weird characters. This issue does not occur in Linux. Here it is an example:
This is what, by default, Minecraft outputs to us:
This is our desired output:
First, right click your cmd window and click Properties
Then, go to Options tab and find what is your cmd encoding
In my case, it appears to be 850 Latin-1. So now we need to indicate Java to output all text using this encoding. To do that, navigate to https://docs.oracle.com/javase/6/docs/technotes/guides/intl/encoding.doc.html and find your encoding. Then, copy the Canonical name for java.io and java.lang
, in my case Cp850.
Once you have copied your encoding, add to your start.bat -Dfile.encoding=YOUR_ENCODING_HERE
. For example, in my case, the result would be java -jar -Dfile.encoding=Cp850 spigot-1.14.4.jar
Now start your server and problem should now be solved!
WebConsole - MIT License - mesacarlos