Summary

In this chapter, we saw the encoding support in Beautiful Soup. We understood how to get the original encoding detected by Beautiful Soup. We also learned to create a BeautifulSoup object by explicitly specifying the encoding. The output encoding was also discussed in this chapter. The next chapter deals with the different methods provided by Beautiful Soup to display content.

Get Getting Started with Beautiful Soup now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.