Followup to: <[EMAIL PROTECTED]> By author: Pedro Ferreira <[EMAIL PROTECTED]> In newsgroup: linux.utf8 > > I already have a perl script (thanks to Oyvind A. > Holm) that converts an ascii file with U+nnnn unicode > codes to an utf-8 file. > Now I would like to do the oposite, convert an utf-8 > file to an ascii file, each utf-8 character would be > encoded back to U+nnnn. Many thanks in advance for any > help! >
You'd probably be better off using C-like escape codes \uXXXX and \UXXXXXXXX with \ escaped as \\. -hpa -- <[EMAIL PROTECTED]> at work, <[EMAIL PROTECTED]> in private! "Unix gives you enough rope to shoot yourself in the foot." http://www.zytor.com/~hpa/puzzle.txt <[EMAIL PROTECTED]> -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/