70CentsApple / ChatTools

Chat Tools 一个 Minecraft Fabric 辅助模组 | A Fabric client-side Minecraft Mod
GNU General Public License v3.0
13 stars 4 forks source link

Doesn't Store Special Characters #31

Open AlphaLeoli opened 2 months ago

AlphaLeoli commented 2 months ago

Bug description

The responder works perfectly fine when you put in a unicode character. However, after you relaunch it changes to a question mark. This happens both in the regex (which makes it so you can't make it respond to people when they send a special character) and in the actual response (which makes you look confused all the time when you send the question mark)

Steps to reproduce

  1. make a responder to respond with a special unicode character like the one i used, 💕
  2. use it, to make sure it works
  3. relaunch the game
  4. use it and it will appear as question marks.

Expected behavior

image

Actual behavior

image

Relevant logs

No response

Minecraft version

1.20.4

Mod version

2.2.1

Other information

No response

Check list

70CentsApple commented 2 months ago

I couldn't reproduce it in my dev environment. How about trying using the latest artifact and tell if the problem still exists?

AlphaLeoli commented 2 months ago

Yeah it still happens. I will show the steps to reproduce in more detail

  1. go into the game and create a filter. the one i have is this image
  2. make sure it works. for me, it did! image
  3. after testing, alt+f4 your game, and then launch back up
  4. go into the config, and you will see that the hearts turned into question marks. As you can see in this screenshot, all my other triggers that have characters like that are question marks and no longer work properly. image
70CentsApple commented 2 months ago

Still, can't reproduce. Could you please do /chattools config openfile, and tell me the encoding? It can be seen here ↓ image

AlphaLeoli commented 2 months ago

UTF-8

70CentsApple commented 2 months ago

UTF-8

It is supposed to work fine, but on your computer it doesn't. That's weird.