BOM header
来源:互联网 发布:网络谣言研究报告 编辑:程序博客网 时间:2024/06/10 10:40
Today, I played with Bs4 package, It works nicely on the htmtl parsing.
I've always heard how troublesome it is about the encodes model in Python, and different versions. And I encoutered the stuff this afternoon. To be honest, it's really annoying...
Well, don't trouble trouble until touble troubles you.
As I installed the package, I tried to make something with the classes. But I got a problem with the input connection:
I tried many times in different ways, but it just did'n work. I changed the encode model, modified the module..
Since the notification says about the __int__.py, I even doubted that if I'd downloaded the damaged package, and redownload Bs4 again...
Still, It wasn't working. Later on, I noticed that it might has something to do with the html mark file. And that's exactly where the problem at!
Beacause I copy the text from the Internet in a txt file, and rename it into a html. The windows make it in UTF-8 with BOM... And that causes all the troubles.
After I convert the html file into a UTF-8 without BOM encode with Nodepad++. It started to work.
This gives me a lesson, I should've turn to the official docments about Bs4 in the first place. Lots of docs on the Internet misinterpretered the docs...
- BOM header
- BOM header
- 屏幕增强实例二(BOM Header)
- BOM
- BOM
- BOM
- BOM
- bom
- BOM
- Bom
- BOM
- BOM
- BOM
- BOM
- BOM
- BOM
- bom
- BOM
- Java 校招面试,Google 面试官亲授-校招面试通关宝典
- 比特平面分层
- 和为S的连续正数序列
- 链表逆转的两种方法
- thinkphp3.2 发送邮件三个步骤
- BOM header
- thinkPHP传数组到模板页面volist每一列加一个button,点击按钮携带参数传给JS函数,跳转到不同的方法
- JQ 错误信息提示封装
- EF Code First 学习笔记:表映射
- iptables 详解(NAT)
- codevs 3983 调整(tweak)
- 读取web项目下text图片地址并在网页显示
- Android_广播机制总结
- linux启动第一个应用程序init && init启动android过程解析 && init.rc与inittab的关系 && android property和linux 环境变量