Nuno Ricardo Gomes Antunes wrote:
I'm affraid a simple uppercase is not sufficient because the first hyphen is getting in the way. It should be "ISO8859-1" instead of "ISO-8859-1".
It looks like my Perl is a little bit more tolerant or my distribution tolerates more encodings. Which of the following encodings work for you?
iso88591 iso-8859-1 iso8859-1 ISO88591 ISO8859-1 ISO-8859-1
The best option - which works for me too - is the first one because we can setup this encoding with a common regex. "locale -a" includes it too.
$enc =~ s/-//g; lc($enc)
Michael -- ------------------------------------------------------------------- Michael Bell Email: [EMAIL PROTECTED] ZE Computer- und Medienservice Tel.: +49 (0)30-2093 2482 (Computing Centre) Fax: +49 (0)30-2093 2704 Humboldt-University of Berlin Unter den Linden 6 10099 Berlin Email (private): [EMAIL PROTECTED] Germany http://www.openca.org
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
OpenCA-Devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openca-devel