当前位置:网站首页>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())
边栏推荐
- SOC_ SD_ CMD_ FSM
- What is sodium hydroxide?
- The golang timer uses the stepped pit: the timer is executed once a day
- Tshydro tool
- 1290_ Implementation analysis of prvtaskistasksuspended() interface in FreeRTOS
- Unconventional ending disconnected from the target VM, address: '127.0.0.1:62635', transport: 'socket‘
- SD_ CMD_ SEND_ SHIFT_ REGISTER
- Basic operation of external interrupt (keil5)
- Concurrent programming - how to interrupt / stop a running thread?
- Powermanagerservice (I) - initialization
猜你喜欢
第 2 章:小试牛刀,实现一个简单的Bean容器
Clickhouse database installation deployment and remote IP access
I implement queue with C I
Do you choose pandas or SQL for the top 1 of data analysis in your mind?
Altimeter data knowledge point 2
[software testing] 03 -- overview of software testing
行测--资料分析--fb--高照老师
CADD课程学习(5)-- 构建靶点已知的化合结构(ChemDraw)
Daily Practice:Codeforces Round #794 (Div. 2)(A~D)
How to modify the file path of Jupiter notebook under miniconda
随机推荐
Word import literature -mendeley
Batch convert txt to excel format
Oracle code use
行测--资料分析--fb--高照老师
R language learning notes 1
M2dgr slam data set of multi-source and multi scene ground robot
And play the little chestnut of dynamic agent
arcpy. SpatialJoin_ Analysis spatial connection analysis
[node] NVM version management tool
Hdu1231 maximum continuous subsequence (divide and conquer or dynamic gauge or double pointer)
Selenium element positioning
arcgis_ spatialjoin
Energy conservation and creating energy gap
Docker installs MySQL and uses Navicat to connect
CADD课程学习(6)-- 获得已有的虚拟化合物库(Drugbank、ZINC)
Matrix keyboard scan (keil5)
Graduation thesis project local deployment practice
NPM and package common commands
Daily Practice:Codeforces Round #794 (Div. 2)(A~D)
SOC_ SD_ DATA_ FSM