Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4316 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
nov 24
20220
1
set 23
3033
3
mag 23
5635
7
apr 23
49010
1
dic 22
7876