Skip to Content
Menú
This question has been flagged
4299 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
1
de nov. 24
20215
1
de set. 23
3028
3
de maig 23
5631
7
d’abr. 23
49005
1
de des. 22
7870