perl-unicode

Re: system 'iconv' considered harmful. was: Source data for perl encodings

2001-01-09 03:35:28
Owen Taylor <otaylor(_at_)redhat(_dot_)com> writes:

For the naming problem, I think you can generally count on
not having conflicting names, so I'd take the approach of:

- iconv open with the supplied name

- if that fails, look in a list of aliases for alternate
  character set names to try.

Character set naming, while certainly not properly standardized,
is not such a huge problem as to make it impossible to handle.
It's not like you'll ask for 'iso-8859-1' and find out that
that's the system's name for 'SJIS'.

No, but it might just as well be. 
man -s 5 iconv on this Sun (which is "best" way to find out what is 
supported) shows (amongst others not including any JIS or even greek):

"Standard"     iconv name
ISO 8859-1     8859
ISO 8859-5     iso5 
MS 1250        win2


Regards,
                                       Owen
-- 
Nick Ing-Simmons <nik(_at_)tiuk(_dot_)ti(_dot_)com>
Via, but not speaking for: Texas Instruments Ltd.