Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Python View UTF-8 Encoding

2025-03-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

About Unicode and UTF-8 coding

For more information on the coding table of Unicode and UTF-8 of Chinese characters, please see the following link

Http://blog.csdn.net/qiaqia609/article/details/8069678

For example:

738B E7 8E 8B King

This means that the Unicode code is 738B, which is called "UTF", "UTF", "8" and "E78E8B".

Use python to print the UTF-8 code of Wang.

The source code is as follows, and the file is saved as zhongwen.py

#-*-coding: utf-8-*-

Print "zhongwen r"Wang w"

$python zhongwen.py

Zhongwen'\ xe7\ x8e\ x8b'

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report