Form API Json Ecoding Error

Discussion in 'Help' started by LyricalLyfes, Feb 23, 2021.

  1. LyricalLyfes

    LyricalLyfes Spider

    Messages:
    14
    [Server thread/CRITICAL]: InvalidArgumentException: "(EXCEPTION) in "pmsrc/src/pocketmine/Player" at line 3627
    Failed to encode form JSON: Malformed UTF-8 characters, possibly incorrectly encoded" 2021-02-23 [07:38:18] [Server thread/CRITICAL]: #0 plugins/RankUp/src/Crull/RankUp/RankUp(1039): pocketmine\Player->sendForm(object jojoe77777\FormAPI\SimpleForm)


    I just keep getting this error it only happens when I'm using my VPS I tried it on my main PC and it worked perfectly fine but when I put the exact same code on my VPS where the server is hosted it just comes up with this error
     
  2. Primus

    Primus Zombie Pigman

    Messages:
    565
    Can you show us the code that you're using?
     
  3. LyricalLyfes

    LyricalLyfes Spider

    Messages:
    14
    I managed to fix it for some reason the VPS text editor had its encoding set to 1252 (ANSI - Latin I) instead of UTF-8
    ty for replying btw
     
    Primus likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.