跳至内容
菜单
此问题已终结
4319 查看

i use BeautifulSoup library to extract text from html

soup = BeautifulSoup(html, features='lxml',from_encoding="utf-8")
text_new = soup.text
print text_new
self.content = text_new
When i print it in console I got the text correctly as it is.


But when i save the text in db (self.content), it is like this:

u0631\u0642\u0645 (5) \u0644\u0633\u0646\u0629 2015 

Please help in solving the issue
形象
丢弃
相关帖文 回复 查看 活动
1
11月 24
20221
1
9月 23
3034
3
5月 23
5635
7
4月 23
49011
1
12月 22
7876