Reading the byte values from the .sav file on Mac

Hello everyone, it seems MacOS cannot properly display the byte values from the saved files:
Here is the code doing the work:


And here is the result, with UTF-8 in VSCode:
image
It seems regardless of whatever valid value I pass in the WriteByte, the result is similar gibberish

EDIT: This is a peculiarity with how MacOS encodes text. The .sav files open and display the values as expected when opened on a Windows machine, even if saved on a Mac. This is barely an issue if you have a backup Windows computer alongside your MacOS machine.

It can also depend on the capabilities of a given font as well.
Fortunately, this section is informational, we won’t actually be reading and writing bytes directly, but instead relying on classes already designed to do those things.
For true human readable save files, I’ve modified the saving system to use Json here:
SavingSystem

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms