3 # This script takes an Unicode character map as input and outputs
4 # conversion code for SquirrelMail charset support.
6 # This code is placed in the Public Domain. Written by Gustav Foseid,
7 # gustavf@squirrelmail.org
16 ($orig_text, $unicode_text, $dummy, $name) = split /\t/;
18 # oct does not only do what it's name suggest. If a string starts
19 # with 0x it is interpreted as a hexadecimal value.
20 $orig = oct $orig_text;
21 $unicode = oct $unicode_text;
25 printf (' $string = str_replace("\%o", "&#%d", $string);'."\n",