When I copy text from web pages, there are some special characters like ', - etc (not UTF-8 encoding). As you can see in the following screenshot:
I checked out some similar questions in this site:
- [X] How to strip invalid UTF-8 characters from a string?
- [X] How to fix latin character (e.g. ç, é) incorrectly displayed in emacs ess-buffer?
- [X] How encode to UTF-8 content of buffer?
- [X] Character encoding when copying some text from somewhere to Emacs and saving to a file
But can't find what I want.
I want to do query/replace all invalid UTF-8 encoding characters in buffer just like [M-%]
in Emacs.