[Python] Removing \u2018 and \u2019 character

Discussão em 'Python' iniciado por Stack, Maio 19, 2025.

  1. Stack

    Stack Membro Participativo

    I am using Beautiful Soup to parse webpages and printing the name of the webpages visited on the terminal. However, often the name of the webpage has single left (\u2018) and right (\u2019) character which Python can't print as it gives a charmap encoding error.

    Is there any way to remove these characters?

    Continue reading...

Compartilhe esta Página