简体   繁体   中英

How to decode this string? with simplified chinese character

I am going to decode this string: "\\xE7\\x92\\x90\\xE7\\x94\\xB8\\xE5\\x99\\xBE\\xE7\\x81\\x9E\\xE7\\x82\\xB0\\xE5\\x94\\xAC\\xE9\\x90\\x9E", but fail.

The python code I use. (with refer to this article )

s = '\xE7\x92\x90\xE7\x94\xB8\xE5\x99\xBE\xE7\x81\x9E\xE7\x82\xB0\xE5\x94\xAC\xE9\x90\x9E'
ss = s.encode('raw_unicode_escape')
sss = ss.decode()
print(sss)

And here the output result:

D:\py>py test.py
璐甸噾灞炰唬鐞

However, The result chinese character string is meaningless. So I think it should be a simplified chinese string, How can I get the string in simplified version?

我通过将输出单词“璐甸噾灞唬唬唬”复制到.txt文件来解决问题,然后将该.txt文件拖到chrome浏览器上。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM