当前位置:网站首页>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())
边栏推荐
- 大学生活的自我总结-大一
- Clickhouse database installation deployment and remote IP access
- Unforgettable summary of 2021
- [software testing] 02 -- software defect management
- 2022年PMP项目管理考试敏捷知识点(7)
- Do you choose pandas or SQL for the top 1 of data analysis in your mind?
- Now there are HTML files and MVC made with vs (connected to the database). How can they be connected?
- 玩转gRPC—深入概念与原理
- Eclipse project recompile, clear cache
- [tf1] save and load parameters
猜你喜欢
Mipi interface, DVP interface and CSI interface of camera
Today, share the wonderful and beautiful theme of idea + website address
【无标题】
Delayqueue usage and scenarios of delay queue
How to delete the virus of inserting USB flash disk copy of shortcut to
And let's play dynamic proxy (extreme depth version)
Pytorch has been installed in anaconda, and pycharm normally runs code, but vs code displays no module named 'torch‘
并查集理论讲解和代码实现
Explanation of parallel search set theory and code implementation
M2dgr slam data set of multi-source and multi scene ground robot
随机推荐
Course learning accumulation ppt
Basic series of SHEL script (I) variables
Light up the running light, rough notes for beginners (1)
Basic operation of external interrupt (keil5)
Basic series of SHEL script (II) syntax + operation + judgment
Jenkins reported an error. Illegal character: '\ufeff'. Class, interface or enum are required
Simple operation of nixie tube (keil5)
Typescript get timestamp
The problem of configuring opencv in qt5.13.2 is solved in detail
Idea common settings
Implementation of one-dimensional convolutional neural network CNN based on FPGA (VIII) implementation of activation layer
Do you choose pandas or SQL for the top 1 of data analysis in your mind?
Basic series of SHEL script (III) for while loop
R language learning notes 1
Negative number storage and type conversion in programs
Don't confuse the use difference between series / and / *
Netease to B, soft outside, hard in
[vscode] search using regular expressions
[vscode] prohibit the pylance plug-in from automatically adding import
Matrix keyboard scan (keil5)