Re: [xml] Available encodings in libxml2
- From: Daniel Veillard <veillard redhat com>
- To: xml gnome org
- Subject: Re: [xml] Available encodings in libxml2
- Date: Sun, 21 Jul 2002 02:59:46 -0400
On Sun, Jul 21, 2002 at 04:52:13PM +1000, Cameron McCormack wrote:
Hi everyone.
I've just started using libxml2. I need to find out what encodings are
available in my program. Looking through the documentation in
libxml-encoding.html I couldn't see any function that would let me do
this. Is there in fact a way I can list all of the available encodings?
the default supported natively by libxml2 are:
- UTF8
- UTF16
- ISO-8859-1
Now if compiled with iconv support then you can add the list of encodings
it can handle, the best is (on linux) to use the command line:
gnome:~ -> iconv --list
The following list contain all the coded character sets known. This does
not necessarily mean that all combinations of these names can be used for
the FROM and TO command line parameters. One coded character set can be
listed with several different names (aliases).
437, 500, 500V1, 850, 851, 852, 855, 856, 857, 860, 861, 862, 863, 864, 865,
866, 869, 874, 904, 1026, 1046, 1047, 8859_1, 8859_2, 8859_3, 8859_4, 8859_5,
and there is like 5 pages of names of encoding name and aliases supported.
There is no function at the libxml2 API level to return such list, maybe
it's part of iconv API.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]