Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-124179

Translations are displayed UTF-8 encoded

XMLWordPrintable

    • Confirmed

      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

      1. Download the attached file MC-124179 resource pack.zip and place it in your resourcepacks folder
      2. Load the resource pack
      3. 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)
      

        1. ru_ru.json
          190 kB
        2. pack.mcmeta
          0.2 kB
        3. MC-124179 resource pack.zip
          0.9 kB
        4. mc_should_look_like.PNG
          mc_should_look_like.PNG
          653 kB
        5. mc_bug.PNG
          mc_bug.PNG
          648 kB

            dinnerbone [Mojang] Nathan Adams
            mtzk Sergey
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: