Solved Cannot use Unicode Special Characters (Specifically »)

Discussion in 'Spigot Plugin Help' started by Lethality, Apr 20, 2017.

  1. Hey! So I've been trying to use the » character for my messages, and while they're worked on most plugins (LiteBans, Essentials, etc.), on a few plugins they also include this weird character along with the double arrow. Here's a screenshot of the working message (http://prntscr.com/eyl7gy), and here's an example of the message that also includes the weird character (http://prntscr.com/eyl7p3). I've already tried to use UTF-8 encoding, but that doesn't seem to work at all. Note: These plugins were custom-made for my server, so I can edit the code if needed, but I can't seem to find where the problem is at all. I'd appreciate it if any of you guys could help me out with figuring out what the cause for this is, and how to fix it. Thanks!

    - G6/Lethal
     
  2. Try using:
    Code (Text):
    \xbb
    instead of using the symbol "»".
     
  3. This is also the case with newline and tab
     
  4. Forgot to update this. I asked in the IRC chat and they helped me find out that since I was using Windows to host the test server I was using (On my PC), the encoding would have a lot of errors. I switched the server to my dedi and everything worked fine,