Re: Question about foreign/compound characters.



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

.



Relevant Pages