Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load_settings, e: 'utf-8' codec can't decode byte 0xd7 in position 1206: invalid continuation byte #169

Open
barzilli opened this issue Oct 13, 2023 · 1 comment

Comments

@barzilli
Copy link

Hi,

I'm running in a generic Linux Debian 12 container and get the following error whenever I launch entry_with_update.py:
load_settings, e: 'utf-8' codec can't decode byte 0xd7 in position 1206: invalid continuation byte

This error occurs because the settings-example.json and resolutions-example.json files contain extended ascii characters. The .json files work correctly when I make them into generic text files, with no extended characters. Specifically, the "x" character that separates the resolution height and width definitions contain an extended "x" ascii character.

If you look closely at the following example taken from the settings-example.json file, you will notice that
"resolution": "1152×896 (9:7)",
is not the same as
"resolution": "1152x896 (9:7)",

Please replace the special extended ascii "×" in the json files with generic text "x".

Regards,
-Rick

@MoonRide303
Copy link
Owner

@barzilli Hi there. I checked it on my own PC (just copied those example files, and removed '-example' from the names) and it seems to be working fine - no errors at all. I am using Windows, but Python should handle text files encoding same way across different OSes. Questions:

  1. Did you copy those files from latest release, or maybe from some older MRE version?
  2. Did you only copy those files, or also used some editors to introduce some changes? It might be your text editor that is causing the troubles (if it uses different encoding than UTF-8).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants