Hello,
I just installed libiconv from
http://clisp.cons.org/~haible/packages-libiconv.html (Tom gave me the
link earlier today). The version number of this iconv lib is 1.3 and I
cannot see any newer file (using ftpsearch.lycos.com). Unfortunately,
this does not work out of the box:
1. Trying to "make" after installing iconv forgets to "-liconv" and
stops trying to link sabcmd. I edited Sablotron/command/Makefile just
to make this work: sabcmd_LDFLAGS = -liconv
2. Trying to use <xsl:output encoding="ISO-8859-1"/> gives an error
at the end of utf8.c, near the end of the file
cd = iconv_open (iconv_encoding[enc], "UTF8");
(the assertion in the next line fails.) I change "UTF8" to "UTF-8" and
now it still complains:
3.
Warning [code:458]
output encoding 'ISO-8859-1' not supported, using 'UTF-8'
Unfortunately, now sabcmd writes '<?xml version="1.0"
encoding="UTF-8"?>', but the rest of the data is __not__ UTF-8 but
ISO-8859-1 as I requested. So my postprocessing fails... It will still
print UTF-8 the way it is supposed to, if I remove the xsl:output.
--
Guenter Radestock, Universitaetsbibliothek Karlsruhe
[EMAIL PROTECTED]
http://www.ubka.uni-karlsruhe.de/~guenter