fork(2) download
  1. text <- "[Peanut M&M\u0092s]"
  2. text
  3. replaced <- gsub("[][]|[^[:ascii:]]", "", text, perl=T)
  4. replaced
Success #stdin #stdout 0.3s 22832KB
stdin
Standard input is empty
stdout
[1] "[Peanut M&M\u0092s]"
[1] "Peanut M&Ms"