Skip to content

Show local characters in Windows Console

Carlos Mesa edited this page Aug 28, 2019 · 3 revisions

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:
Weird chars screenshot

This is our desired output:
Correct output

How to solve this problem

First, right click your cmd window and click Properties
Step 1

Then, go to Options tab and find what is your cmd encoding
Step 2

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.

Step 3

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!

Clone this wiki locally