You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
date format: %y-%b-%d %H:%M or just %b
env: Windows 7 with Russian l10n, ST 2.0.1 2217
error:
Traceback (most recent call last):
File ".\sublime_plugin.py", line 356, in run_
File ".\insert_date.py", line 38, in run
File ".\encodings\utf_8.py", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 4-6: invalid data
If I replace utf-8 with cp1251 then it works as it should.
I'm not sure what way is best but here I've used this:
sys_enc = locale.getpreferredencoding()
text = text.decode(sys_enc)
seems to work
The text was updated successfully, but these errors were encountered:
Thanks for the heads up but I fear that I have to adjust many parts for ST3 compatibility (I was messing a long time with encodings, e.g. for "local" %Z). Maybe I will just split the package into two branches and only continue developing for ST3 because as it is now this package is pretty much feature complete.
Reported by @vovkkk (source):
The text was updated successfully, but these errors were encountered: