[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: UTF-8 file to ASCII file converter
Followup to: <20020411070418.63085.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
By author: Pedro Ferreira <pedro_nf@xxxxxxxxx>
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
--
<hpa@xxxxxxxxxxxxx> at work, <hpa@xxxxxxxxx> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt <amsp@xxxxxxxxx>
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/