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

File saving gives error and closes the app. #60

Open
garawaa opened this issue Jun 2, 2024 · 0 comments
Open

File saving gives error and closes the app. #60

garawaa opened this issue Jun 2, 2024 · 0 comments

Comments

@garawaa
Copy link

garawaa commented Jun 2, 2024

When I save an edited file it immediately closes and gives some exception:
Traceback (most recent call last):
File "D:\Python39\lib\site-packages\ui\mainwin.py", line 520, in saveAs
self.editor.save(self.file.encode("utf-8"))
File "D:\Python39\lib\site-packages\CodeEditor\editor.py", line 366, in save
outfile.write(self.text())
File "D:\Python39\lib\encodings\cp1251.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 491-495: character maps to

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