Python HTML Encoding \xc2\xa0

后端 未结 1 1191
予麋鹿
予麋鹿 2021-02-13 04:25

I\'ve been struggling with this one for a while. I\'m trying to write strings to HTML but have issues with the format once I\'ve cleaned them. Here\'s an example:



        
相关标签:
1条回答
  • \xc2\xa0 means 0xC2 0xA0 is so-called

    Non-breaking space

    It is a kind of invisible control character in UTF-8 encodings. More info about it check the wikipedia: https://en.wikipedia.org/wiki/Non-breaking_space

    I copied what you have pasted in the questions and got the expected output.

    0 讨论(0)
提交回复
热议问题