I encountered this bug on a Windows PC today. I fixed it by doing this:
On Windows:
Right-click This PC or Computer → Properties → Advanced system settings → Environment Variables.
Look under System variables for P4CHARSET. If it’s set, change it to “none” otherwise press new and enter the the values same as the screenshot
hope this helps anyone else - its similar to the last guys answer but I’m too technology illiterate to know what he meant