Home > other >  Labelmel error to batch convert json file
Labelmel error to batch convert json file

Time:11-26

The last step when you execute the command old such mistakes, what's the solution

CodePudding user response:

UnicodeDecodeError: 'GBK' codec can 't decode byte 0 x80 position in 1221: illegal multibyte sequence it is an error

CodePudding user response:

Reference
UnicodeDecodeError: 'GBK' codec can 't decode byte 0 x80 position in 1221: illegal multibyte sequence

Unicode decoding error means:
Guess:
Fp. Read () to read the file content
Then try to use (estimated before you specified in the code or the default configuration for encoding) GBK to parse content
The result error
Reason: your file content is not GBK code, but when trying to read (in the file) with GBK decoding, so an error
How to solve:
What is first to clear up your own file encoding of
To specify the corresponding code in your code, this is not an error,

Supplement:
1. How to make clear what is file encoding
Can use VSCode or notepad + + editor to view the file encoding

Details:
File coding, in the history of the most useful editor: VSCode
Or:
3.3.1. Check my current file using Notepad + + coding - [] crifan recommended lightweight text editor, the best alternative to Notepad: Notepad + +

2. If you don't understand itself for character encoding file coding, suggest to first understand the basic knowledge of
Refer to my
A:
A character encoding,
Or:
Concise explanation:
A character encoding introductory tutorial -
on the way

  • Related