mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Fix codec problem on MSW
This commit is contained in:
parent
326091624c
commit
65f217afa8
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,10 @@
|
||||||
|
|
||||||
# String <-> Bytes conversion and output utilities
|
# String <-> Bytes conversion and output utilities
|
||||||
|
|
||||||
|
# Microsoft again not following standards. Sigh.
|
||||||
|
import codecs
|
||||||
|
codecs.register(lambda x: codecs.lookup('utf8') if x == 'cp65001' else None)
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
if sys.hexversion >= 0x3000000:
|
if sys.hexversion >= 0x3000000:
|
||||||
unicode = str
|
unicode = str
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue