There is garbled code in sublime build python file, how to solve it?

as shown in the figure, there is garbled code in the, build python file, and of course, in the same way, garbled code also occurs in run-current file. How to break it?

ST:



my system is win10, and ST is 3170. It can be inferred that it is not the problem of Python, but the problem of ST coding.


when opening and writing a file, you can write down the encoding format
encoding='utf8'

.

data=open ("cardno.txt", encoding= 'utf8')
result=open ("result.txt", "w", encoding=' utf8')-sharp specifies the encoding format of the file

Menu