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

Log4j config does not have a charset specified, causing 2-byte characters not to be displayed properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.17.1
    • None
    • Ubuntu 20.04.2 LTS (Focal Fossa)
      openjdk 16.0.1 2021-04-20
    • Unconfirmed
    • (Unassigned)

      Hello mojang team.

      When someone chat in Japanese(or some 2byte character), SysOut log and logs/logfile shows

      [00:00:00] [Server thread/INFO]: <username> ??????????????????????
      

      I could not see what they type. Then I need to fix log4j2.xml config

      from

      <PatternLayout pattern="[%d\{HH:mm:ss}] [%t/%level]: %msg%n" />
      

      to

      <PatternLayout charset="utf-8" pattern="[%d\{HH:mm:ss}] [%t/%level]: %msg%n" />
      

      Thank you. Regards.

            Unassigned Unassigned
            natsumesou natsumesou
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: