blob: fadb5d4391bb8b0c3d58c444de2da4d5a61b3776 [file] [log] [blame]
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001<HTML
2><HEAD
3><TITLE
4>encoding</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.33"><LINK
8REL="HOME"
9TITLE="Gnome XML Library Reference Manual"
10HREF="book1.html"><LINK
11REL="UP"
12TITLE="Libxml Library Reference"
13HREF="libxml-lib.html"><LINK
14REL="PREVIOUS"
15TITLE="parserInternals"
16HREF="gnome-xml-parserinternals.html"><LINK
17REL="NEXT"
18TITLE="debugXML"
19HREF="gnome-xml-debugxml.html"></HEAD
20><BODY
21BGCOLOR="#FFFFFF"
22TEXT="#000000"
23><DIV
24CLASS="NAVHEADER"
25><TABLE
26WIDTH="100%"
27BORDER="0"
28BGCOLOR="#000000"
29CELLPADDING="1"
30CELLSPACING="0"
31><TR
32><TH
33COLSPAN="4"
34ALIGN="center"
35><FONT
36COLOR="#FFFFFF"
37SIZE="5"
38>Gnome XML Library Reference Manual</FONT
39></TH
40></TR
41><TR
42><TD
43WIDTH="25%"
44BGCOLOR="#C00000"
45ALIGN="left"
46><A
47HREF="gnome-xml-parserinternals.html"
48><FONT
49COLOR="#FFFFFF"
50SIZE="3"
51><B
52>&#60;&#60;&#60; Previous Page</B
53></FONT
54></A
55></TD
56><TD
57WIDTH="25%"
58BGCOLOR="#0000C0"
59ALIGN="center"
60><FONT
61COLOR="#FFFFFF"
62SIZE="3"
63><B
64><A
65HREF="book1.html"
66><FONT
67COLOR="#FFFFFF"
68SIZE="3"
69><B
70>Home</B
71></FONT
72></A
73></B
74></FONT
75></TD
76><TD
77WIDTH="25%"
78BGCOLOR="#00C000"
79ALIGN="center"
80><FONT
81COLOR="#FFFFFF"
82SIZE="3"
83><B
84><A
85HREF="libxml-lib.html"
86><FONT
87COLOR="#FFFFFF"
88SIZE="3"
89><B
90>Up</B
91></FONT
92></A
93></B
94></FONT
95></TD
96><TD
97WIDTH="25%"
98BGCOLOR="#C00000"
99ALIGN="right"
100><A
101HREF="gnome-xml-debugxml.html"
102><FONT
103COLOR="#FFFFFF"
104SIZE="3"
105><B
106>Next Page &#62;&#62;&#62;</B
107></FONT
108></A
109></TD
110></TR
111></TABLE
112></DIV
113><H1
114>encoding</H1
115><DIV
116CLASS="REFNAMEDIV"
117><A
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000118NAME="AEN12133"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000119></A
120><H2
121>Name</H2
122>encoding &#8212; </DIV
123><DIV
124CLASS="REFSYNOPSISDIV"
125><A
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000126NAME="AEN12136"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000127></A
128><H2
129>Synopsis</H2
130><TABLE
131BORDER="0"
132BGCOLOR="#D6E8FF"
133WIDTH="100%"
134CELLPADDING="6"
135><TR
136><TD
137><PRE
138CLASS="SYNOPSIS"
139>&#13;
140
141enum <A
142HREF="gnome-xml-encoding.html#XMLCHARENCODING"
143>xmlCharEncoding</A
144>;
145int (<A
146HREF="gnome-xml-encoding.html#XMLCHARENCODINGINPUTFUNC"
147>*xmlCharEncodingInputFunc</A
148>) (unsigned char *out,
149 int outlen,
150 unsigned char *in,
151 int inlen);
152int (<A
153HREF="gnome-xml-encoding.html#XMLCHARENCODINGOUTPUTFUNC"
154>*xmlCharEncodingOutputFunc</A
155>) (unsigned char *out,
156 int outlen,
157 unsigned char *in,
158 int inlen);
159struct <A
160HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLER"
161>xmlCharEncodingHandler</A
162>;
163typedef <A
164HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
165>xmlCharEncodingHandlerPtr</A
166>;
167void <A
168HREF="gnome-xml-encoding.html#XMLINITCHARENCODINGHANDLERS"
169>xmlInitCharEncodingHandlers</A
170> (void);
171void <A
172HREF="gnome-xml-encoding.html#XMLCLEANUPCHARENCODINGHANDLERS"
173>xmlCleanupCharEncodingHandlers</A
174> (void);
175void <A
176HREF="gnome-xml-encoding.html#XMLREGISTERCHARENCODINGHANDLER"
177>xmlRegisterCharEncodingHandler</A
178> (<A
179HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
180>xmlCharEncodingHandlerPtr</A
181> handler);
182<A
183HREF="gnome-xml-encoding.html#XMLCHARENCODING"
184>xmlCharEncoding</A
185> <A
186HREF="gnome-xml-encoding.html#XMLDETECTCHARENCODING"
187>xmlDetectCharEncoding</A
188> (unsigned char *in);
189<A
190HREF="gnome-xml-encoding.html#XMLCHARENCODING"
191>xmlCharEncoding</A
192> <A
193HREF="gnome-xml-encoding.html#XMLPARSECHARENCODING"
194>xmlParseCharEncoding</A
195> (const char *name);
196<A
197HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
198>xmlCharEncodingHandlerPtr</A
199> <A
200HREF="gnome-xml-encoding.html#XMLGETCHARENCODINGHANDLER"
201>xmlGetCharEncodingHandler</A
202>
203 (<A
204HREF="gnome-xml-encoding.html#XMLCHARENCODING"
205>xmlCharEncoding</A
206> enc);
207<A
208HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
209>xmlCharEncodingHandlerPtr</A
210> <A
211HREF="gnome-xml-encoding.html#XMLFINDCHARENCODINGHANDLER"
212>xmlFindCharEncodingHandler</A
213>
214 (const char *name);</PRE
215></TD
216></TR
217></TABLE
218></DIV
219><DIV
220CLASS="REFSECT1"
221><A
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000222NAME="AEN12157"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000223></A
224><H2
225>Description</H2
226><P
227></P
228></DIV
229><DIV
230CLASS="REFSECT1"
231><A
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000232NAME="AEN12160"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000233></A
234><H2
235>Details</H2
236><DIV
237CLASS="REFSECT2"
238><A
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000239NAME="AEN12162"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000240></A
241><H3
242><A
243NAME="XMLCHARENCODING"
244></A
245>enum xmlCharEncoding</H3
246><TABLE
247BORDER="0"
248BGCOLOR="#D6E8FF"
249WIDTH="100%"
250CELLPADDING="6"
251><TR
252><TD
253><PRE
254CLASS="PROGRAMLISTING"
255>typedef enum {
256 XML_CHAR_ENCODING_ERROR= -1, /* No char encoding detected */
257 XML_CHAR_ENCODING_NONE= 0, /* No char encoding detected */
258 XML_CHAR_ENCODING_UTF8= 1, /* UTF-8 */
259 XML_CHAR_ENCODING_UTF16LE= 2, /* UTF-16 little endian */
260 XML_CHAR_ENCODING_UTF16BE= 3, /* UTF-16 big endian */
261 XML_CHAR_ENCODING_UCS4LE= 4, /* UCS-4 little endian */
262 XML_CHAR_ENCODING_UCS4BE= 5, /* UCS-4 big endian */
263 XML_CHAR_ENCODING_EBCDIC= 6, /* EBCDIC uh! */
264 XML_CHAR_ENCODING_UCS4_2143=7, /* UCS-4 unusual ordering */
265 XML_CHAR_ENCODING_UCS4_3412=8, /* UCS-4 unusual ordering */
266 XML_CHAR_ENCODING_UCS2= 9, /* UCS-2 */
267 XML_CHAR_ENCODING_8859_1= 10,/* ISO-8859-1 ISO Latin 1 */
268 XML_CHAR_ENCODING_8859_2= 11,/* ISO-8859-2 ISO Latin 2 */
269 XML_CHAR_ENCODING_8859_3= 12,/* ISO-8859-3 */
270 XML_CHAR_ENCODING_8859_4= 13,/* ISO-8859-4 */
271 XML_CHAR_ENCODING_8859_5= 14,/* ISO-8859-5 */
272 XML_CHAR_ENCODING_8859_6= 15,/* ISO-8859-6 */
273 XML_CHAR_ENCODING_8859_7= 16,/* ISO-8859-7 */
274 XML_CHAR_ENCODING_8859_8= 17,/* ISO-8859-8 */
275 XML_CHAR_ENCODING_8859_9= 18,/* ISO-8859-9 */
276 XML_CHAR_ENCODING_2022_JP= 19,/* ISO-2022-JP */
277 XML_CHAR_ENCODING_SHIFT_JIS=20,/* Shift_JIS */
278 XML_CHAR_ENCODING_EUC_JP= 21 /* EUC-JP */
279} xmlCharEncoding;</PRE
280></TD
281></TR
282></TABLE
283><P
284></P
285></DIV
286><HR><DIV
287CLASS="REFSECT2"
288><A
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000289NAME="AEN12167"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000290></A
291><H3
292><A
293NAME="XMLCHARENCODINGINPUTFUNC"
294></A
295>xmlCharEncodingInputFunc ()</H3
296><TABLE
297BORDER="0"
298BGCOLOR="#D6E8FF"
299WIDTH="100%"
300CELLPADDING="6"
301><TR
302><TD
303><PRE
304CLASS="PROGRAMLISTING"
305>int (*xmlCharEncodingInputFunc) (unsigned char *out,
306 int outlen,
307 unsigned char *in,
308 int inlen);</PRE
309></TD
310></TR
311></TABLE
312><P
313></P
314><DIV
315CLASS="INFORMALTABLE"
316><P
317></P
318><TABLE
319BORDER="0"
320WIDTH="100%"
321BGCOLOR="#FFD0D0"
322CELLSPACING="0"
323CELLPADDING="4"
324CLASS="CALSTABLE"
325><TR
326><TD
327WIDTH="20%"
328ALIGN="RIGHT"
329VALIGN="TOP"
330><TT
331CLASS="PARAMETER"
332><I
333>out</I
334></TT
335>&nbsp;:</TD
336><TD
337WIDTH="80%"
338ALIGN="LEFT"
339VALIGN="TOP"
340>&nbsp;</TD
341></TR
342><TR
343><TD
344WIDTH="20%"
345ALIGN="RIGHT"
346VALIGN="TOP"
347><TT
348CLASS="PARAMETER"
349><I
350>outlen</I
351></TT
352>&nbsp;:</TD
353><TD
354WIDTH="80%"
355ALIGN="LEFT"
356VALIGN="TOP"
357>&nbsp;</TD
358></TR
359><TR
360><TD
361WIDTH="20%"
362ALIGN="RIGHT"
363VALIGN="TOP"
364><TT
365CLASS="PARAMETER"
366><I
367>in</I
368></TT
369>&nbsp;:</TD
370><TD
371WIDTH="80%"
372ALIGN="LEFT"
373VALIGN="TOP"
374>&nbsp;</TD
375></TR
376><TR
377><TD
378WIDTH="20%"
379ALIGN="RIGHT"
380VALIGN="TOP"
381><TT
382CLASS="PARAMETER"
383><I
384>inlen</I
385></TT
386>&nbsp;:</TD
387><TD
388WIDTH="80%"
389ALIGN="LEFT"
390VALIGN="TOP"
391>&nbsp;</TD
392></TR
393><TR
394><TD
395WIDTH="20%"
396ALIGN="RIGHT"
397VALIGN="TOP"
398><I
399CLASS="EMPHASIS"
400>Returns</I
401> :</TD
402><TD
403WIDTH="80%"
404ALIGN="LEFT"
405VALIGN="TOP"
406>&nbsp;</TD
407></TR
408></TABLE
409><P
410></P
411></DIV
412></DIV
413><HR><DIV
414CLASS="REFSECT2"
415><A
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000416NAME="AEN12197"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000417></A
418><H3
419><A
420NAME="XMLCHARENCODINGOUTPUTFUNC"
421></A
422>xmlCharEncodingOutputFunc ()</H3
423><TABLE
424BORDER="0"
425BGCOLOR="#D6E8FF"
426WIDTH="100%"
427CELLPADDING="6"
428><TR
429><TD
430><PRE
431CLASS="PROGRAMLISTING"
432>int (*xmlCharEncodingOutputFunc) (unsigned char *out,
433 int outlen,
434 unsigned char *in,
435 int inlen);</PRE
436></TD
437></TR
438></TABLE
439><P
440></P
441><DIV
442CLASS="INFORMALTABLE"
443><P
444></P
445><TABLE
446BORDER="0"
447WIDTH="100%"
448BGCOLOR="#FFD0D0"
449CELLSPACING="0"
450CELLPADDING="4"
451CLASS="CALSTABLE"
452><TR
453><TD
454WIDTH="20%"
455ALIGN="RIGHT"
456VALIGN="TOP"
457><TT
458CLASS="PARAMETER"
459><I
460>out</I
461></TT
462>&nbsp;:</TD
463><TD
464WIDTH="80%"
465ALIGN="LEFT"
466VALIGN="TOP"
467>&nbsp;</TD
468></TR
469><TR
470><TD
471WIDTH="20%"
472ALIGN="RIGHT"
473VALIGN="TOP"
474><TT
475CLASS="PARAMETER"
476><I
477>outlen</I
478></TT
479>&nbsp;:</TD
480><TD
481WIDTH="80%"
482ALIGN="LEFT"
483VALIGN="TOP"
484>&nbsp;</TD
485></TR
486><TR
487><TD
488WIDTH="20%"
489ALIGN="RIGHT"
490VALIGN="TOP"
491><TT
492CLASS="PARAMETER"
493><I
494>in</I
495></TT
496>&nbsp;:</TD
497><TD
498WIDTH="80%"
499ALIGN="LEFT"
500VALIGN="TOP"
501>&nbsp;</TD
502></TR
503><TR
504><TD
505WIDTH="20%"
506ALIGN="RIGHT"
507VALIGN="TOP"
508><TT
509CLASS="PARAMETER"
510><I
511>inlen</I
512></TT
513>&nbsp;:</TD
514><TD
515WIDTH="80%"
516ALIGN="LEFT"
517VALIGN="TOP"
518>&nbsp;</TD
519></TR
520><TR
521><TD
522WIDTH="20%"
523ALIGN="RIGHT"
524VALIGN="TOP"
525><I
526CLASS="EMPHASIS"
527>Returns</I
528> :</TD
529><TD
530WIDTH="80%"
531ALIGN="LEFT"
532VALIGN="TOP"
533>&nbsp;</TD
534></TR
535></TABLE
536><P
537></P
538></DIV
539></DIV
540><HR><DIV
541CLASS="REFSECT2"
542><A
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000543NAME="AEN12227"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000544></A
545><H3
546><A
547NAME="XMLCHARENCODINGHANDLER"
548></A
549>struct xmlCharEncodingHandler</H3
550><TABLE
551BORDER="0"
552BGCOLOR="#D6E8FF"
553WIDTH="100%"
554CELLPADDING="6"
555><TR
556><TD
557><PRE
558CLASS="PROGRAMLISTING"
559>struct xmlCharEncodingHandler {
560 char *name;
561 xmlCharEncodingInputFunc input;
562 xmlCharEncodingOutputFunc output;
563};</PRE
564></TD
565></TR
566></TABLE
567><P
568></P
569></DIV
570><HR><DIV
571CLASS="REFSECT2"
572><A
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000573NAME="AEN12232"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000574></A
575><H3
576><A
577NAME="XMLCHARENCODINGHANDLERPTR"
578></A
579>xmlCharEncodingHandlerPtr</H3
580><TABLE
581BORDER="0"
582BGCOLOR="#D6E8FF"
583WIDTH="100%"
584CELLPADDING="6"
585><TR
586><TD
587><PRE
588CLASS="PROGRAMLISTING"
589>typedef xmlCharEncodingHandler *xmlCharEncodingHandlerPtr;</PRE
590></TD
591></TR
592></TABLE
593><P
594></P
595></DIV
596><HR><DIV
597CLASS="REFSECT2"
598><A
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000599NAME="AEN12237"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000600></A
601><H3
602><A
603NAME="XMLINITCHARENCODINGHANDLERS"
604></A
605>xmlInitCharEncodingHandlers ()</H3
606><TABLE
607BORDER="0"
608BGCOLOR="#D6E8FF"
609WIDTH="100%"
610CELLPADDING="6"
611><TR
612><TD
613><PRE
614CLASS="PROGRAMLISTING"
615>void xmlInitCharEncodingHandlers (void);</PRE
616></TD
617></TR
618></TABLE
619><P
620>Initialize the char encoding support, it registers the default
621encoding supported.
622NOTE: while public, this function usually doesn't need to be called
623in normal processing.</P
624><P
625></P
626></DIV
627><HR><DIV
628CLASS="REFSECT2"
629><A
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000630NAME="AEN12243"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000631></A
632><H3
633><A
634NAME="XMLCLEANUPCHARENCODINGHANDLERS"
635></A
636>xmlCleanupCharEncodingHandlers ()</H3
637><TABLE
638BORDER="0"
639BGCOLOR="#D6E8FF"
640WIDTH="100%"
641CELLPADDING="6"
642><TR
643><TD
644><PRE
645CLASS="PROGRAMLISTING"
646>void xmlCleanupCharEncodingHandlers (void);</PRE
647></TD
648></TR
649></TABLE
650><P
651>Cleanup the memory allocated for the char encoding support, it
652unregisters all the encoding handlers.</P
653><P
654></P
655></DIV
656><HR><DIV
657CLASS="REFSECT2"
658><A
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000659NAME="AEN12249"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000660></A
661><H3
662><A
663NAME="XMLREGISTERCHARENCODINGHANDLER"
664></A
665>xmlRegisterCharEncodingHandler ()</H3
666><TABLE
667BORDER="0"
668BGCOLOR="#D6E8FF"
669WIDTH="100%"
670CELLPADDING="6"
671><TR
672><TD
673><PRE
674CLASS="PROGRAMLISTING"
675>void xmlRegisterCharEncodingHandler (<A
676HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
677>xmlCharEncodingHandlerPtr</A
678> handler);</PRE
679></TD
680></TR
681></TABLE
682><P
683>Register the char encoding handler, surprizing, isn't it ?</P
684><P
685></P
686><DIV
687CLASS="INFORMALTABLE"
688><P
689></P
690><TABLE
691BORDER="0"
692WIDTH="100%"
693BGCOLOR="#FFD0D0"
694CELLSPACING="0"
695CELLPADDING="4"
696CLASS="CALSTABLE"
697><TR
698><TD
699WIDTH="20%"
700ALIGN="RIGHT"
701VALIGN="TOP"
702><TT
703CLASS="PARAMETER"
704><I
705>handler</I
706></TT
707>&nbsp;:</TD
708><TD
709WIDTH="80%"
710ALIGN="LEFT"
711VALIGN="TOP"
712> the xmlCharEncodingHandlerPtr handler block</TD
713></TR
714></TABLE
715><P
716></P
717></DIV
718></DIV
719><HR><DIV
720CLASS="REFSECT2"
721><A
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000722NAME="AEN12265"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000723></A
724><H3
725><A
726NAME="XMLDETECTCHARENCODING"
727></A
728>xmlDetectCharEncoding ()</H3
729><TABLE
730BORDER="0"
731BGCOLOR="#D6E8FF"
732WIDTH="100%"
733CELLPADDING="6"
734><TR
735><TD
736><PRE
737CLASS="PROGRAMLISTING"
738><A
739HREF="gnome-xml-encoding.html#XMLCHARENCODING"
740>xmlCharEncoding</A
741> xmlDetectCharEncoding (unsigned char *in);</PRE
742></TD
743></TR
744></TABLE
745><P
746>Guess the encoding of the entity using the first bytes of the entity content
747accordingly of the non-normative appendix F of the XML-1.0 recommendation.</P
748><P
749></P
750><DIV
751CLASS="INFORMALTABLE"
752><P
753></P
754><TABLE
755BORDER="0"
756WIDTH="100%"
757BGCOLOR="#FFD0D0"
758CELLSPACING="0"
759CELLPADDING="4"
760CLASS="CALSTABLE"
761><TR
762><TD
763WIDTH="20%"
764ALIGN="RIGHT"
765VALIGN="TOP"
766><TT
767CLASS="PARAMETER"
768><I
769>in</I
770></TT
771>&nbsp;:</TD
772><TD
773WIDTH="80%"
774ALIGN="LEFT"
775VALIGN="TOP"
776> a pointer to the first bytes of the XML entity, must be at least
7774 bytes long.</TD
778></TR
779><TR
780><TD
781WIDTH="20%"
782ALIGN="RIGHT"
783VALIGN="TOP"
784><I
785CLASS="EMPHASIS"
786>Returns</I
787> :</TD
788><TD
789WIDTH="80%"
790ALIGN="LEFT"
791VALIGN="TOP"
792>one of the XML_CHAR_ENCODING_... values.</TD
793></TR
794></TABLE
795><P
796></P
797></DIV
798></DIV
799><HR><DIV
800CLASS="REFSECT2"
801><A
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000802NAME="AEN12285"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000803></A
804><H3
805><A
806NAME="XMLPARSECHARENCODING"
807></A
808>xmlParseCharEncoding ()</H3
809><TABLE
810BORDER="0"
811BGCOLOR="#D6E8FF"
812WIDTH="100%"
813CELLPADDING="6"
814><TR
815><TD
816><PRE
817CLASS="PROGRAMLISTING"
818><A
819HREF="gnome-xml-encoding.html#XMLCHARENCODING"
820>xmlCharEncoding</A
821> xmlParseCharEncoding (const char *name);</PRE
822></TD
823></TR
824></TABLE
825><P
826>Conpare the string to the known encoding schemes already known. Note
827that the comparison is case insensitive accordingly to the section
828[XML] 4.3.3 Character Encoding in Entities.</P
829><P
830></P
831><DIV
832CLASS="INFORMALTABLE"
833><P
834></P
835><TABLE
836BORDER="0"
837WIDTH="100%"
838BGCOLOR="#FFD0D0"
839CELLSPACING="0"
840CELLPADDING="4"
841CLASS="CALSTABLE"
842><TR
843><TD
844WIDTH="20%"
845ALIGN="RIGHT"
846VALIGN="TOP"
847><TT
848CLASS="PARAMETER"
849><I
850>name</I
851></TT
852>&nbsp;:</TD
853><TD
854WIDTH="80%"
855ALIGN="LEFT"
856VALIGN="TOP"
857> the encoding name as parsed, in UTF-8 format (ASCII actually)</TD
858></TR
859><TR
860><TD
861WIDTH="20%"
862ALIGN="RIGHT"
863VALIGN="TOP"
864><I
865CLASS="EMPHASIS"
866>Returns</I
867> :</TD
868><TD
869WIDTH="80%"
870ALIGN="LEFT"
871VALIGN="TOP"
872>one of the XML_CHAR_ENCODING_... values or XML_CHAR_ENCODING_NONE
873if not recognized.</TD
874></TR
875></TABLE
876><P
877></P
878></DIV
879></DIV
880><HR><DIV
881CLASS="REFSECT2"
882><A
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000883NAME="AEN12305"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000884></A
885><H3
886><A
887NAME="XMLGETCHARENCODINGHANDLER"
888></A
889>xmlGetCharEncodingHandler ()</H3
890><TABLE
891BORDER="0"
892BGCOLOR="#D6E8FF"
893WIDTH="100%"
894CELLPADDING="6"
895><TR
896><TD
897><PRE
898CLASS="PROGRAMLISTING"
899><A
900HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
901>xmlCharEncodingHandlerPtr</A
902> xmlGetCharEncodingHandler
903 (<A
904HREF="gnome-xml-encoding.html#XMLCHARENCODING"
905>xmlCharEncoding</A
906> enc);</PRE
907></TD
908></TR
909></TABLE
910><P
911>Search in the registrered set the handler able to read/write that encoding.</P
912><P
913></P
914><DIV
915CLASS="INFORMALTABLE"
916><P
917></P
918><TABLE
919BORDER="0"
920WIDTH="100%"
921BGCOLOR="#FFD0D0"
922CELLSPACING="0"
923CELLPADDING="4"
924CLASS="CALSTABLE"
925><TR
926><TD
927WIDTH="20%"
928ALIGN="RIGHT"
929VALIGN="TOP"
930><TT
931CLASS="PARAMETER"
932><I
933>enc</I
934></TT
935>&nbsp;:</TD
936><TD
937WIDTH="80%"
938ALIGN="LEFT"
939VALIGN="TOP"
940> a string describing the char encoding.</TD
941></TR
942><TR
943><TD
944WIDTH="20%"
945ALIGN="RIGHT"
946VALIGN="TOP"
947><I
948CLASS="EMPHASIS"
949>Returns</I
950> :</TD
951><TD
952WIDTH="80%"
953ALIGN="LEFT"
954VALIGN="TOP"
955>the handler or NULL if not found</TD
956></TR
957></TABLE
958><P
959></P
960></DIV
961></DIV
962><HR><DIV
963CLASS="REFSECT2"
964><A
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000965NAME="AEN12326"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000966></A
967><H3
968><A
969NAME="XMLFINDCHARENCODINGHANDLER"
970></A
971>xmlFindCharEncodingHandler ()</H3
972><TABLE
973BORDER="0"
974BGCOLOR="#D6E8FF"
975WIDTH="100%"
976CELLPADDING="6"
977><TR
978><TD
979><PRE
980CLASS="PROGRAMLISTING"
981><A
982HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
983>xmlCharEncodingHandlerPtr</A
984> xmlFindCharEncodingHandler
985 (const char *name);</PRE
986></TD
987></TR
988></TABLE
989><P
990></P
991><DIV
992CLASS="INFORMALTABLE"
993><P
994></P
995><TABLE
996BORDER="0"
997WIDTH="100%"
998BGCOLOR="#FFD0D0"
999CELLSPACING="0"
1000CELLPADDING="4"
1001CLASS="CALSTABLE"
1002><TR
1003><TD
1004WIDTH="20%"
1005ALIGN="RIGHT"
1006VALIGN="TOP"
1007><TT
1008CLASS="PARAMETER"
1009><I
1010>name</I
1011></TT
1012>&nbsp;:</TD
1013><TD
1014WIDTH="80%"
1015ALIGN="LEFT"
1016VALIGN="TOP"
1017>&nbsp;</TD
1018></TR
1019><TR
1020><TD
1021WIDTH="20%"
1022ALIGN="RIGHT"
1023VALIGN="TOP"
1024><I
1025CLASS="EMPHASIS"
1026>Returns</I
1027> :</TD
1028><TD
1029WIDTH="80%"
1030ALIGN="LEFT"
1031VALIGN="TOP"
1032>&nbsp;</TD
1033></TR
1034></TABLE
1035><P
1036></P
1037></DIV
1038></DIV
1039></DIV
1040><DIV
1041CLASS="NAVFOOTER"
1042><BR
1043CLEAR="all"><BR><TABLE
1044WIDTH="100%"
1045BORDER="0"
1046BGCOLOR="#000000"
1047CELLPADDING="1"
1048CELLSPACING="0"
1049><TR
1050><TD
1051WIDTH="25%"
1052BGCOLOR="#C00000"
1053ALIGN="left"
1054><A
1055HREF="gnome-xml-parserinternals.html"
1056><FONT
1057COLOR="#FFFFFF"
1058SIZE="3"
1059><B
1060>&#60;&#60;&#60; Previous Page</B
1061></FONT
1062></A
1063></TD
1064><TD
1065WIDTH="25%"
1066BGCOLOR="#0000C0"
1067ALIGN="center"
1068><FONT
1069COLOR="#FFFFFF"
1070SIZE="3"
1071><B
1072><A
1073HREF="book1.html"
1074><FONT
1075COLOR="#FFFFFF"
1076SIZE="3"
1077><B
1078>Home</B
1079></FONT
1080></A
1081></B
1082></FONT
1083></TD
1084><TD
1085WIDTH="25%"
1086BGCOLOR="#00C000"
1087ALIGN="center"
1088><FONT
1089COLOR="#FFFFFF"
1090SIZE="3"
1091><B
1092><A
1093HREF="libxml-lib.html"
1094><FONT
1095COLOR="#FFFFFF"
1096SIZE="3"
1097><B
1098>Up</B
1099></FONT
1100></A
1101></B
1102></FONT
1103></TD
1104><TD
1105WIDTH="25%"
1106BGCOLOR="#C00000"
1107ALIGN="right"
1108><A
1109HREF="gnome-xml-debugxml.html"
1110><FONT
1111COLOR="#FFFFFF"
1112SIZE="3"
1113><B
1114>Next Page &#62;&#62;&#62;</B
1115></FONT
1116></A
1117></TD
1118></TR
1119><TR
1120><TD
1121COLSPAN="2"
1122ALIGN="left"
1123><FONT
1124COLOR="#FFFFFF"
1125SIZE="3"
1126><B
1127>parserInternals</B
1128></FONT
1129></TD
1130><TD
1131COLSPAN="2"
1132ALIGN="right"
1133><FONT
1134COLOR="#FFFFFF"
1135SIZE="3"
1136><B
1137>debugXML</B
1138></FONT
1139></TD
1140></TR
1141></TABLE
1142></DIV
1143></BODY
1144></HTML
1145>