The bug
It appears the new language files are not read using UTF-8
(without BOM) as encoding or the game actively encodes the read content using UTF-8
again.
For example €
(\u20AC
) is displayed as €
which is its UTF-8
encoded representation.
How to reproduce
Download the attached file
and place it in your
resourcepacks
folderLoad the resource pack
Use the following command
/tellraw @s {"translate":"utf_8_test"}
The language file is properly encoded using UTF-8 without BOM and contains the following:
{
"utf_8_test": "✓ (check mark)\n★ (star)\n☂ (umbrella)\n€ (Euro sign)"
}
But in-game the following is shown:
✓ (check mark)
★ (star)
☂ (umbrella)
€ (Euro sign)
Linked issues
is duplicated by 1
Attachments
Comments 3
The error is related to the choice of the wrong encoding when you open the language file. Judging by the symbols, I found out that the file opens with the encoding of the Windows 1251, but should with the encoding of UTF-8.
Please also provide a screenshot showing what it should look like.