当前位置:网站首页>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())
边栏推荐
- What does soda ash do?
- Basic operation of external interrupt (keil5)
- (tool use) how to make the system automatically match and associate to database fields by importing MySQL from idea and writing SQL statements
- Play with grpc - go deep into concepts and principles
- Steps and FAQs of connecting windows Navicat to Alibaba cloud server MySQL
- Hdu1232 unimpeded project (and collection)
- [vscode] recommended plug-ins
- [framework] multi learner
- 氫氧化鈉是什麼?
- How to deal with excessive memory occupation of idea and Google browser
猜你喜欢

Daily Practice:Codeforces Round #794 (Div. 2)(A~D)

Netease to B, soft outside, hard in
![[software testing] 04 -- software testing and software development](/img/bd/49bba7ee455ce59e726a2fdeafc7c3.jpg)
[software testing] 04 -- software testing and software development

Daily Practice:Codeforces Round #794 (Div. 2)(A~D)

Concurrent programming - deadlock troubleshooting and handling

What if the DataGrid cannot see the table after connecting to the database

How to modify the file path of Jupiter notebook under miniconda

PostMessage communication

An article was opened to test the real situation of outsourcing companies

Using GEE plug-in in QGIS
随机推荐
How to deal with excessive memory occupation of idea and Google browser
Powermanagerservice (I) - initialization
Hdu1232 unimpeded project (and collection)
Batch convert txt to excel format
(top) pretty girl binary color code portal
Idea to view the source code of jar package and some shortcut keys (necessary for reading the source code)
The golang timer uses the stepped pit: the timer is executed once a day
Do you choose pandas or SQL for the top 1 of data analysis in your mind?
[software testing] 06 -- basic process of software testing
ModuleNotFoundError: No module named ‘picamera‘
D2L installation
[idea] efficient plug-in save actions to improve your work efficiency
Database SQL practice 4. Find the last of employees in all assigned departments_ Name and first_ name
Negative number storage and type conversion in programs
Idea shortcut key
Don't confuse the use difference between series / and / *
纯碱是做什么的?
Rough notes of C language (2) -- constants
Basic operation of external interrupt (keil5)
公安专业知识--哔哩桐老师