How to unescape special characters from BeautifulSoup output?

Posted by Suhail on Stack Overflow See other posts from Stack Overflow or by Suhail
Published on 2010-05-19T12:12:03Z Indexed on 2010/05/20 4:40 UTC
Read the original article Hit count: 435

Hi, I am facing issues with the special characters like ° and ® which represent the degree Fahrenheit sign and the registered sign,

when i print the string the contains the special characters, it gives output like this:

Preheat oven to 350° F
Welcome to Lorem Ipsum Inc® 

Is there a way I can output the exact characters and not their codes? Please let me know.

© Stack Overflow or respective owner

Related posts about python

Related posts about character-encoding