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

encryption/decryption fail on windows with files using utf8 #10

Open
slamp opened this issue May 29, 2018 · 0 comments
Open

encryption/decryption fail on windows with files using utf8 #10

slamp opened this issue May 29, 2018 · 0 comments

Comments

@slamp
Copy link

slamp commented May 29, 2018

Versions used: VSCodeNotebooK: 2.1, Windows 7, python 3.6.5

Encryption/decryption fail on Windows with files using utf8 characters.
These does not happen on Linux.

> Executing task in folder VSCodeNotebook_v2.1: python manager.py <

[[ Encrypted. Enter key to unlock ]]
Enter key >
Traceback (most recent call last):
  File "manager.py", line 7, in <module>
    vscode_notebook.main()
  File "D:\VSCodeNotebook_v2.1\vscode_notebook\vscode_notebook.py", line 55, in main
    failStatus = update_file(decode, get_file_list(), key)
  File "D:\VSCodeNotebook_v2.1\vscode_notebook\cryptlib.py", line 122, in update_file
    fptr.write(newData)
  File "D:\Python\Python36-32\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 '\u2610' in position 15: character maps to <undefined>
The terminal process terminated with exit code: 1
slamp added a commit to slamp/VSCodeNotebook that referenced this issue May 29, 2018
slamp added a commit to slamp/VSCodeNotebook that referenced this issue Aug 16, 2023
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