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

UTF-8 encoded config files are saved as ASCII, mangling unicode characters on FreeBSD

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.18.2
    • None
    • Java Versions JDK8, JDK16, JDK17, FreeBSD 12.2-RELEASE-p12
    • Unconfirmed
    • (Unassigned)

      Despite the files (server.properties, for instance) being saved as UTF-8 files, and the JVM automatically picking up that FreeBSD's file encoding is UTF-8, when a minecraft server starts up and reads the UTF-8 config file, it saves it back to disk as plain ASCII, with the unicode character mangled.

      For example:
      motd=♥ A Minecraft Server

      Turns into:
      motd=\u00E2\u0099\u00A5 A Minecraft Server

       

      This also leads to problems with modded minecraft's config files, but I believe fixing this underlying issue will also solve that.

            Unassigned Unassigned
            Anaerin Anaerin
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: