MultiMC / Launcher

A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once
https://multimc.org/
Other
4.26k stars 874 forks source link

Minecraft Logs are still shown in system encoding in Java 18 and higher versions #4951

Open XIAYM-gh opened 1 year ago

XIAYM-gh commented 1 year ago

Operating System

Windows

Description of bug

Since Java 18, it has enabled the "Global UTF-8" feature, but MultiMC still reads logs in system encoding (such as GBK), and it causes non-ascii characters can't be shown correctly.

Steps to reproduce

  1. Launch game & Open the multimc log inspector
  2. Send any non-ascii message

Suspected cause

It is already been said in the description.

This issue is unique

arthomnix commented 1 year ago

Java 18 is not officially supported by Minecraft anyway, use java 17 for 1.17+ and java 8 for older versions

SeemWind commented 4 months ago

It has not been solved yet, for me I have to add these jvm parameter -Dfile.encoding=gbk not sure whether it will cause other errors