• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

快速理解统一码和utf-8的本质


Recommended Posts

字符串编码

基本概念

image-20220501092300634

在代码中处理,为了字节统一,都统一使用Unicode

image-20220501092343830

核心:在pyhton中s.encode("utf-8")中的变量实例s必须是已经是Unicode格式,否则继续编码utf-8一定报错;

image-20220501093552998

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now