当前位置:网站首页>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())
边栏推荐
- Brief description of inux camera (Mipi interface)
- Line test -- data analysis -- FB -- teacher Gao Zhao
- [tf1] save and load parameters
- C learning notes
- Intelligent target detection 59 -- detailed explanation of pytoch focal loss and its implementation in yolov4
- 【idea】Could not autowire. No beans of xxx type found
- Detailed explanation of miracast Technology (I): Wi Fi display
- Hdu1231 maximum continuous subsequence (divide and conquer or dynamic gauge or double pointer)
- 剑指 Offer 56 数组中数字出现的次数(异或)
- Concurrent programming - how to interrupt / stop a running thread?
猜你喜欢
HDU1231 最大连续子序列(分治or动规or双指针)
并查集理论讲解和代码实现
M2DGR 多源多场景 地面机器人SLAM数据集
Shadowless cloud desktop - online computer
CADD course learning (5) -- Construction of chemosynthesis structure with known target (ChemDraw)
Inftnews | drink tea and send virtual stocks? Analysis of Naixue's tea "coin issuance"
Hdu1231 maximum continuous subsequence (divide and conquer or dynamic gauge or double pointer)
Concurrent programming - how to interrupt / stop a running thread?
docker安装mysql并使用navicat连接
How to delete the virus of inserting USB flash disk copy of shortcut to
随机推荐
Do you choose pandas or SQL for the top 1 of data analysis in your mind?
[untitled]
[node] differences among NPM, yarn and pnpm
611. Number of effective triangles
CADD course learning (5) -- Construction of chemosynthesis structure with known target (ChemDraw)
并查集理论讲解和代码实现
Selenium element positioning
Word import literature -mendeley
Play with grpc - go deep into concepts and principles
Use of Pai platform
Matrix keyboard scan (keil5)
Daily Practice:Codeforces Round #794 (Div. 2)(A~D)
[software testing] 04 -- software testing and software development
UNIX commands often used in work
Using GEE plug-in in QGIS
[software testing] 06 -- basic process of software testing
[software testing] 05 -- principles of software testing
selenium 元素定位
CADD课程学习(5)-- 构建靶点已知的化合结构(ChemDraw)
How to modify the file path of Jupiter notebook under miniconda