DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
valueerror: all strings must be xml compatible: unicode or ascii, no null bytes or control characters
cleaned_string = ''.join(c for c in input_string if valid_xml_char_ordinal(c))
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#strings
#xml
#unicode
#null
#bytes
#control
#characters
ADD COMMENT
Topic
COMMENT
Name
6+6 =
Submit