I am using the following command to replace the non-ASCII characters, single quotes and non printable characters:sed -i -e s/'//g -e's/&apos;//g' -e's/[\d128-\d255]//g' -e's/\x0//g' filenameHowever, I am getting an error:sed: -e expression #3, char 18: Invalid collation characterHow can I replace these characters?
Replace non-ASCII characters with space in a file
text processing;sed