当前位置:网站首页>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())
边栏推荐
- Negative number storage and type conversion in programs
- SOC_ SD_ CMD_ FSM
- [vscode] recommended plug-ins
- What is soda?
- Anaconda navigator click open no response, can not start error prompt attributeerror: 'STR' object has no attribute 'get‘
- [vscode] prohibit the pylance plug-in from automatically adding import
- 玩转gRPC—深入概念与原理
- Basic series of SHEL script (I) variables
- [software testing] 02 -- software defect management
- [tf1] save and load parameters
猜你喜欢
The problem of configuring opencv in qt5.13.2 is solved in detail
Negative number storage and type conversion in programs
Machine learning Seaborn visualization
Brief description of inux camera (Mipi interface)
Hdu1231 maximum continuous subsequence (divide and conquer or dynamic gauge or double pointer)
剑指 Offer 56 数组中数字出现的次数(异或)
CADD course learning (6) -- obtain the existing virtual compound library (drugbank, zinc)
611. 有效三角形的个数
Miracast技术详解(一):Wi-Fi Display
Play with grpc - go deep into concepts and principles
随机推荐
611. 有效三角形的个数
[untitled]
C learning notes
golang定时器使用踩的坑:定时器每天执行一次
Using GEE plug-in in QGIS
Ggplot2 drawing learning notes in R
Application of MATLAB in Linear Algebra (4): similar matrix and quadratic form
剑指 Offer 56 数组中数字出现的次数(异或)
Simple operation of running water lamp (keil5)
Idea common settings
Basic series of SHEL script (II) syntax + operation + judgment
Binary search (half search)
Unconventional ending disconnected from the target VM, address: '127.0.0.1:62635', transport: 'socket‘
Microservice registry Nacos introduction
Ethtool principle introduction and troubleshooting ideas for network card packet loss (with ethtool source code download)
And let's play dynamic proxy (extreme depth version)
How to deal with excessive memory occupation of idea and Google browser
Do you choose pandas or SQL for the top 1 of data analysis in your mind?
UNIX commands often used in work
Basic knowledge of public security -- FB