当前位置:网站首页>Web page Chinese display (print, etc.) GBK error, solution, software
Web page Chinese display (print, etc.) GBK error, solution, software
2022-07-05 07:28:00 【work-harder】
background
- When Chinese web pages are displayed , The Chinese display is abnormal ( Not in Chinese )
- Specific view https://editor.csdn.net/md/?articleId=109079157
terms of settlement
- see https://editor.csdn.net/md/?articleId=109079157
- New way : To be sinicized sublime text 4, You don't need the method mentioned in the above link , It can be displayed directly .
#
# test sublime text Whether the lower module works normally
# among , Chinese display does not need to import other modules , Or special treatment
# this sublime text Chinese version
# The following can operate normally 、 Show
from bs4 import BeautifulSoup
from urllib.request import urlopen
print('Chinese input and display:', ' Hello ')
url='http://www.baidu.com'
html = urlopen(url)
soup = BeautifulSoup(html, 'lxml')
print(soup.prettify())
边栏推荐
- Machine learning Seaborn visualization
- 剑指 Offer 56 数组中数字出现的次数(异或)
- 公安基础知识--fb
- [software testing] 03 -- overview of software testing
- 大学生活的自我总结-大一
- Eclipse project recompile, clear cache
- The mutual realization of C L stack and queue in I
- Brief description of inux camera (Mipi interface)
- The problem of configuring opencv in qt5.13.2 is solved in detail
- Three body goal management notes
猜你喜欢

CADD课程学习(6)-- 获得已有的虚拟化合物库(Drugbank、ZINC)
![[software testing] 06 -- basic process of software testing](/img/fe/3d8b9b68f95ac7899ab87d6993284d.jpg)
[software testing] 06 -- basic process of software testing

第 2 章:小试牛刀,实现一个简单的Bean容器

玩转gRPC—深入概念与原理

How to delete the virus of inserting USB flash disk copy of shortcut to

Docker installs MySQL and uses Navicat to connect

Graduation thesis project local deployment practice

611. Number of effective triangles

Idea common settings

大学生活的自我总结-大一
随机推荐
D2L installation
DelayQueue延迟队列的使用和场景
Powermanagerservice (I) - initialization
Altimeter data knowledge point 2
ImportError: No module named ‘Tkinter‘
Detailed explanation of miracast Technology (I): Wi Fi display
Simple operation of running water lamp (keil5)
Shadowless cloud desktop - online computer
Rough notes of C language (2) -- constants
Simple operation of nixie tube (keil5)
大学生活的自我总结-大一
[framework] multi learner
[OBS] x264 Code: "buffer_size“
Energy conservation and creating energy gap
CADD course learning (6) -- obtain the existing virtual compound library (drugbank, zinc)
Cookie operation
Light up the running light, rough notes for beginners (1)
[solved] there is something wrong with the image
2022 PMP project management examination agile knowledge points (7)
611. Number of effective triangles