📜  valueerror: all strings must be xml compatible: unicode or ascii, no null bytes or control characters - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:00.769000             🧑  作者: Mango

代码示例3
cleaned_string = ''.join(c for c in input_string if valid_xml_char_ordinal(c))