python - "Â" 无法从 html 文件中读取
问题描述
我试图读取一个包含类似“Ordinary of  £0 each”的文件,但是当我打印“”时丢失了,即我得到了“0 Ordinary of £0 each”。下面是我的python代码
file1 = open(path+files[i]+".txt.html", 'r')
Lines = file1.readlines()
for line in Lines: # read each line seperately
print("line",line)
请帮忙
解决方案
推荐阅读
- javascript - 在 mongodb 中找不到嵌入的文档
- laravel - Laravel:找不到类'App\Imports\Date'
- python - BeautifulSoup 抓取数据 - 指定行?子分类?
- javascript - 这叫什么出口形式?导出默认名称({...})(类)
- python - 在 Jinja2 模板中更改 CSS
- kotlin - 获取按给定离散概率分布的布尔值
- php - 如何在后端的php中将大文件上传到onedrive
- python - 手动删除文件后连续保存文件到目录
- youtube - YouTube 数据 API 的问题:有时会崩溃并且无法正常工作
- api - 如何在使用 POSTMAN 发送另一个请求之前触发请求