Remove Non Unicode Characters
# Removes non uni code characters from a text
# @param text is the text value to strip of non unicode characters
# Reference: https://stackoverflow.com/questions/20078816/replace-non-ascii-characters-with-a-single-space
def removeNonUniChars(text):
# This specifically removes control characters (what those are)
return re.sub(r'[\x00-\x08\x10-\x1f\x7f-\x9f]', '', text)
Journal
- 2020.08.31 Created file.md