From 4e0fe816fc9f84e4ce17956de88458087dcc1f66 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 12 Nov 2015 13:44:51 +0100 Subject: script to remove private use area chars --- fix-utf-8-pua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 fix-utf-8-pua (limited to 'fix-utf-8-pua') diff --git a/fix-utf-8-pua b/fix-utf-8-pua new file mode 100755 index 0000000..674d424 --- /dev/null +++ b/fix-utf-8-pua @@ -0,0 +1,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 + -- cgit v1.2.3