Strip control codes and extended characters from a string: Difference between revisions