ChatTools icon indicating copy to clipboard operation
ChatTools copied to clipboard

Doesn't Store Special Characters

Open AlphaLeoli opened this issue 1 year ago • 8 comments

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

  • [X] I have verified that the issue persists in the latest version of the mod.
  • [X] I have searched the existing issues and confirmed that this is not a duplicate.

AlphaLeoli avatar Jul 13 '24 09:07 AlphaLeoli

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

70CentsApple avatar Jul 13 '24 10:07 70CentsApple

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

AlphaLeoli avatar Jul 13 '24 10:07 AlphaLeoli

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

70CentsApple avatar Jul 13 '24 12:07 70CentsApple

UTF-8

AlphaLeoli avatar Jul 13 '24 12:07 AlphaLeoli

UTF-8

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

70CentsApple avatar Jul 13 '24 12:07 70CentsApple

@AlphaLeoli Hey! Does this problem still exist?

70CentsApple avatar Sep 18 '24 02:09 70CentsApple

i will check in a bit am doing smt

AlphaLeoli avatar Sep 18 '24 02:09 AlphaLeoli

oh i almost forgot to do this but yes it still happens

AlphaLeoli avatar Sep 19 '24 03:09 AlphaLeoli

I think the best way to solve this is to directly write its corresponding Unicode encoding in the source file (it can't be done in-game, it will be escaped), so it shouldn't appear as a problem when re-entering......it might be a bit troublesome?

tmmovo avatar Sep 17 '25 05:09 tmmovo