Contributions to the documentation are of course welcome as well.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-03-06 11:45: Subject: decoder for utf-8
Certainly, utf8_to_string only handles utf-8 - that's what I meant by special-casing. I do realize that there is no equivalent option for other encodings. However, utf-8 is the most common (and one of the defaults) for XML.
As for the DIY comment: heh, just what I expected to hear ;-) "Wishful thinking" is an appropriate phrase here... A more realistic option is to use the system's iconv for preprocessing, if available, at least in the glibc currently provided with the better Linux dists it seems to be quite capable. So much for portability, though :-(
(Redundant, tired remark: in a perfect world, the behavior we're discussing would be documented... sorry, couldn't resist)
/rjb
/ rjb