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

unicode encode error #29

Open
LightArrowsEXE opened this issue Jun 28, 2021 · 0 comments
Open

unicode encode error #29

LightArrowsEXE opened this issue Jun 28, 2021 · 0 comments

Comments

@LightArrowsEXE
Copy link

I'm running into the following error with vspreview on Windows:

Traceback (most recent call last):
  File "D:\Users/light/Documents/_Github/vapoursynth-preview\vspreview\toolbars\misc.py", line 40, in <lambda>
    self.reload_script_button.     clicked.connect(lambda: self.main.reload_script())  # pylint: disable=unnecessary-lambda
  File "D:\Users/light/Documents/_Github/vapoursynth-preview\vspreview\main.py", line 603, in reload_script
    self.toolbars.misc.save_sync()
  File "D:\Users/light/Documents/_Github/vapoursynth-preview\vspreview\toolbars\misc.py", line 137, in save_sync
    f.write(f'# VSPreview storage for {self.main.script_path}\n')
  File "C:\Users\light\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\uff0f' in position 124: character maps to <undefined>

The cause appears to be me including unicode characters in the filepath (path has a ). Removing it fixes the issue, but it would be great if it allowed for utf-8 unicode characters to be part of the filepath without issue.

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

1 participant