Skip to Content
Menu
This question has been flagged
3429 Views

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
Avatar
Discard
Related Posts Replies Views Activity
1
Nov 24
18020
1
Sep 23
1203
3
May 23
4092
7
Apr 23
47094
1
Dec 22
6435