lib/scripts/recode.pl
author haftmann
Fri, 09 May 2014 08:13:37 +0200
changeset 56927 4044a7d1720f
parent 52835 0906c00bb21d
child 62506 860cd901ab43
permissions -rw-r--r--
hardcoded nbe and sml into value command

#
# Author: Makarius
#
# recode.pl - recode utf8 for ML
#

for (@ARGV) {
  utf8::upgrade($_);
  s/([\x80-\xff])/\\${\(ord($1))}/g;
  print $_, " ";
}