keys.json with CJK characters
Posted: 12.01.2024 08:01
Hello,
it seems the _json_loads method in cudax_lib.py will rasise error when the keys_json with CJK characters. Is there an option to set the decode to use cp936?
It happens with the macro plugin when read the keys.json
it seems the _json_loads method in cudax_lib.py will rasise error when the keys_json with CJK characters. Is there an option to set the decode to use cp936?
It happens with the macro plugin when read the keys.json
Thanks!keys_js = apx._json_loads(open(keys_json).read()) if os.path.exists(keys_json) else {}
UnicodeDecodeError: 'gbk' codec can't decode byte 0xb0 in position 22826: illegal multibyte sequence
ERROR: Exception in CudaText for on_start: UnicodeDecodeError: 'gbk' codec can't decode byte 0xb0 in position 22826: illegal multibyte sequence