gsub("[^ -~]+", "", "I mean totally \xed\xa0\xbd\xed\xb8\x8a")
Standard input is empty
[1] "I mean totally "
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!