Re: Question about foreign/compound characters.
- From: "Craig A. Berry" <craigberry@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 21 Mar 2007 19:30:23 -0500
In article
<OF4523CC32.5397211E-ON852572A5.00799FD3-852572A5.007A0D14@xxxxxxxxx>,
norm.raphael@xxxxxxxxx wrote:
2) Is there a program around to do this or that can
easily be canibalized to do it (It seems a bit beyond
DCL)?
For goodness sake don't do it yourself. Use iconv. Type HELP ICONV
CONVERT. Depending on the encodings you are interested in, you may
have to install the internationalization kit from the layered products
CD.
Or if you have any moderately recent version of Perl installed, you can
use the piconv utility that comes with it.
$ piconv :== @perl_root:[utils]piconv.com
$ piconv
piconv.com;1 [-f from_encoding] [-t to_encoding] [-s string] [files...]
piconv.com;1 -l
piconv.com;1 -r encoding_alias
-l,--list
lists all available encodings
-r,--resolve encoding_alias
resolve encoding to its (Encode) canonical name
-f,--from from_encoding
when omitted, the current locale will be used
-t,--to to_encoding
when omitted, the current locale will be used
-s,--string string
"string" will be the input instead of STDIN or files
The following are mainly of interest to Encode hackers:
-D,--debug show debug information
-C N | -c | -p check the validity of the input
-S,--scheme scheme use the scheme for conversion
--
Posted via a free Usenet account from http://www.teranews.com
.
- Follow-Ups:
- Re: Question about foreign/compound characters.
- From: JF Mezei
- Re: Question about foreign/compound characters.
- References:
- Re: Question about foreign/compound characters.
- From: norm . raphael
- Re: Question about foreign/compound characters.
- Prev by Date: Re: end of DLT? Belluzzo strikes again
- Next by Date: Re: Question about foreign/compound characters.
- Previous by thread: Re: Question about foreign/compound characters.
- Next by thread: Re: Question about foreign/compound characters.
- Index(es):
Relevant Pages
|