We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
json文件里存的的是unicode编码 "text":"\u30a2\u30d5\u30ea\u30ab \u30a2\u30d5\u30ea\u30ab\uff08\u82f1\u00a0:
lines1 = f1.read() lines1 = lines1 .encode('utf-8').decode("unicode_escape") print(path1+':'+line)
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 118-119: surrogates not allowed
这个错误怎么解决?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
json文件里存的的是unicode编码 "text":"\u30a2\u30d5\u30ea\u30ab \u30a2\u30d5\u30ea\u30ab\uff08\u82f1\u00a0:
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 118-119: surrogates not allowed
这个错误怎么解决?
The text was updated successfully, but these errors were encountered: