Skip to content

File saving gives error and closes the app. #60

@garawaa

Description

@garawaa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions