Yukkuritaku / unicode-fix

1.12.2以下の環境で、日本語やその他の言語使用時のUnicodeを修正するMod
MIT License
2 stars 0 forks source link

Does not fix splashtext unicode issues. #2

Open reallydrained opened 21 hours ago

reallydrained commented 21 hours ago

I am on Windows 11 and I am putting together a modpack. I have custom splashtexts with colored text and special characters, including Japanese/Chinese/Korean. Apparently it always appears broken (on 1.7.10 at least) for Windows, so I found a fix which is a JVM argument: -Dfile.encoding=UTF-8 this is the only way I've been able to fix the issue. I have been looking for a solution like your mod to fix this issue since I can't put a JVM argument in a modpack .zip but I can obviously put mods so I tried yours but sadly all the special characters appear broken like before without the Java argument. The § symbol used for color coding even shows up as the "Ā" symbol. I have attached screenshots below. I could provide symbols from the special splashtexts if that would help, anything I can do just let me know.

Screenshot 2024-12-02 214827 Screenshot 2024-12-02 214858 Screenshot 2024-12-02 215000 Screenshot 2024-12-02 214051

Yukkuritaku commented 19 hours ago

It looks like wrong text encoding...? From I tested in my custom resource pack(splashes.txt with UTF-8), i dont see the issue. Can you provide the your splashes.txt?

もしかしたらテキストエンコードが間違ってるかも...? 自分のリソースパック(UTF-8のsplashes.txt)で試しても問題が見つからんかったです... もしよろしければsplashes.txtを送ってもらってもよろしいですか? スクリーンショット (2148) スクリーンショット (2149) スクリーンショット (2150)

reallydrained commented 5 minutes ago

There are a lot of splashtexts I made so I picked out ones that are definitely broken: 私が作成したスプラッシュテキストはたくさんあるので、明らかに壊れているものを選択しました:

我喜欢我的世界!
§aLovely!
다문화는 정말 놀랍습니다!
§fⒸ 2024 TPM. All Rights Reserved.
Водка
§61337 h4x0r mode activated!
最高に楽しい時間!
§4§lMighty Dragon Love Infinity ☭
Ichiban Playground™
Minecraft Love ClubⓇ
Delete §6C:\Windows\System32 §rfolder to improve FPS!

This is exactly how they are typed, copied from the splashes.txt file. Am I maybe supposed to be typing them like this: \u00A7a? Maybe this is my issue, I am not sure though. If you think it would fix it I could retype them all but then I am not sure what to do about the Japanese/Chinese/Korean/Russian splashtexts. Doing the \u00A7a versions only would work for special characters like these: Ⓡ ™ § Ⓒ ☭

これは、テキスト ファイルからコピーされた、まさに入力された方法です。次のように入力する必要があるのでしょうか: \u00A7a? たぶんこれが私の問題なのでしょうが、よく分かりません。全部入力し直せば解決すると思うのですが、他の言語についてはどうすればいいのかわかりません。\u00A7a バージョンのみを実行すると、次のような特殊文字に対して機能します: Ⓡ ™ § Ⓒ ☭
Sorry if the translation is really bad, I just used google translate to maybe help but I am not sure if it's bad. Thank you for trying to help me! 翻訳が下手だったらごめんなさい。Google 翻訳を使ってみましたが、下手かどうかはわかりません。助けてくださってありがとうございます!