summaryrefslogtreecommitdiff
path: root/fix-utf-8-pua
blob: 674d42423043443295cc892c11fdcb1e6596413b (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env ruby

# remove private use area chars

while line = STDIN.gets
  line.strip!
  line.gsub! /[\u{e000}-\u{f8ff}]/, " "
  puts line
end