Summary
I've found a couple of problem areas when using unicode.
- Pasting
print("馃帀") into the console ends up pasting print("?"). Though I can still use Win + . to insert emojis(same error).
- If the workbox has unicode text it will cause errors when trying to save to disk. This causes preferences to loose the contents of that file and possibly others.
Traceback (most recent call last):
File "C:\blur\dev\PrEditor\preditor\gui\loggerwindow.py", line 203, in <lambda>
lambda: self.recordPrefs(manual=True)
File "C:\blur\dev\PrEditor\preditor\gui\loggerwindow.py", line 705, in recordPrefs
workbox_prefs = self.uiWorkboxTAB.save_prefs()
File "C:\blur\dev\PrEditor\preditor\gui\group_tab_widget\__init__.py", line 295, in save_prefs
tab_widget.widget(j).__save_prefs__(
File "C:\blur\dev\PrEditor\preditor\gui\workbox_mixin.py", line 268, in __save_prefs__
self.__write_file__(
File "C:\blur\dev\PrEditor\preditor\gui\workboxwidget.py", line 194, in __write_file__
fle.write(cls.__unix_end_lines__(txt))
File "C:\Users\hendew\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 characters in position 29-30: character maps to <undefined>
Summary
I've found a couple of problem areas when using unicode.
print("馃帀")into the console ends up pastingprint("?"). Though I can still useWin + .to insert emojis(same error).