当前位置:网站首页>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())
边栏推荐
- Daily Practice:Codeforces Round #794 (Div. 2)(A~D)
- What does soda ash do?
- Clickhouse database installation deployment and remote IP access
- docker安装mysql并使用navicat连接
- The problem of configuring opencv in qt5.13.2 is solved in detail
- SD_ CMD_ SEND_ SHIFT_ REGISTER
- 剑指 Offer 56 数组中数字出现的次数(异或)
- UNIX commands often used in work
- Raspberry pie 4B arm platform aarch64 PIP installation pytorch
- Batch convert txt to excel format
猜你喜欢

How to modify the file path of Jupiter notebook under miniconda

Delayqueue usage and scenarios of delay queue

Microservice registry Nacos introduction

Docker installs MySQL and uses Navicat to connect

The problem of configuring opencv in qt5.13.2 is solved in detail

2022 PMP project management examination agile knowledge points (7)

Concurrent programming - deadlock troubleshooting and handling

Unforgettable summary of 2021

611. Number of effective triangles

Graduation thesis project local deployment practice
随机推荐
CADD course learning (6) -- obtain the existing virtual compound library (drugbank, zinc)
Install deeptools in CONDA mode
借助 Navicat for MySQL 软件 把 不同或者相同数据库链接中的某数据库表数据 复制到 另一个数据库表中
[vscode] search using regular expressions
Simple use of timeunit
Ggplot2 drawing learning notes in R
Simple operation with independent keys (hey, a little fancy) (keil5)
Oracle code use
[OBS] x264 Code: "buffer_size“
U-boot initialization and workflow analysis
Basic knowledge of public security -- FB
[untitled]
Mathematical analysis_ Notes_ Chapter 8: multiple integral
【idea】Could not autowire. No beans of xxx type found
[solved] there is something wrong with the image
Machine learning Seaborn visualization
【无标题】
Ugnx12.0 initialization crash, initialization error (-15)
Idea push project to code cloud
docker安装mysql并使用navicat连接