Filtering out certain bytes in python

后端 未结 4 530
鱼传尺愫
鱼传尺愫 2020-12-31 04:12

I\'m getting this error in my python program: ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters

This

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-31 04:44

    you may refer to the solution on this website:

    https://mailman-mail5.webfaction.com/pipermail/lxml/2011-July/006090.html

    That solution works for me. You may also have to consider John Machin's solution.

    Good luck!

提交回复
热议问题