blob: 4326f3c613dc4a6232f81a33bc696c55e90fb43b [file] [log] [blame]
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001<HTML
2><HEAD
3><TITLE
4>encoding</TITLE
5><META
6NAME="GENERATOR"
Daniel Veillard06047432000-04-24 11:33:38 +00007CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK
Daniel Veillardaeea04f2000-01-25 19:27:27 +00008REL="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"
Daniel Veillard06047432000-04-24 11:33:38 +000023LINK="#0000FF"
24VLINK="#840084"
25ALINK="#0000FF"
Daniel Veillardaeea04f2000-01-25 19:27:27 +000026><DIV
27CLASS="NAVHEADER"
28><TABLE
29WIDTH="100%"
30BORDER="0"
31BGCOLOR="#000000"
32CELLPADDING="1"
33CELLSPACING="0"
34><TR
35><TH
36COLSPAN="4"
37ALIGN="center"
38><FONT
39COLOR="#FFFFFF"
40SIZE="5"
41>Gnome XML Library Reference Manual</FONT
42></TH
43></TR
44><TR
45><TD
46WIDTH="25%"
47BGCOLOR="#C00000"
48ALIGN="left"
49><A
50HREF="gnome-xml-parserinternals.html"
51><FONT
52COLOR="#FFFFFF"
53SIZE="3"
54><B
55>&#60;&#60;&#60; Previous Page</B
56></FONT
57></A
58></TD
59><TD
60WIDTH="25%"
61BGCOLOR="#0000C0"
62ALIGN="center"
63><FONT
64COLOR="#FFFFFF"
65SIZE="3"
66><B
67><A
68HREF="book1.html"
69><FONT
70COLOR="#FFFFFF"
71SIZE="3"
72><B
73>Home</B
74></FONT
75></A
76></B
77></FONT
78></TD
79><TD
80WIDTH="25%"
81BGCOLOR="#00C000"
82ALIGN="center"
83><FONT
84COLOR="#FFFFFF"
85SIZE="3"
86><B
87><A
88HREF="libxml-lib.html"
89><FONT
90COLOR="#FFFFFF"
91SIZE="3"
92><B
93>Up</B
94></FONT
95></A
96></B
97></FONT
98></TD
99><TD
100WIDTH="25%"
101BGCOLOR="#C00000"
102ALIGN="right"
103><A
104HREF="gnome-xml-debugxml.html"
105><FONT
106COLOR="#FFFFFF"
107SIZE="3"
108><B
109>Next Page &#62;&#62;&#62;</B
110></FONT
111></A
112></TD
113></TR
114></TABLE
115></DIV
116><H1
Daniel Veillard06047432000-04-24 11:33:38 +0000117><A
118NAME="GNOME-XML-ENCODING"
119>encoding</A
120></H1
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000121><DIV
122CLASS="REFNAMEDIV"
123><A
Daniel Veillard06047432000-04-24 11:33:38 +0000124NAME="AEN10933"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000125></A
126><H2
127>Name</H2
Daniel Veillard06047432000-04-24 11:33:38 +0000128>encoding&nbsp;--&nbsp;</DIV
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000129><DIV
130CLASS="REFSYNOPSISDIV"
131><A
Daniel Veillard06047432000-04-24 11:33:38 +0000132NAME="AEN10936"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000133></A
134><H2
135>Synopsis</H2
136><TABLE
137BORDER="0"
138BGCOLOR="#D6E8FF"
139WIDTH="100%"
140CELLPADDING="6"
141><TR
142><TD
143><PRE
144CLASS="SYNOPSIS"
145>&#13;
146
147enum <A
148HREF="gnome-xml-encoding.html#XMLCHARENCODING"
149>xmlCharEncoding</A
150>;
151int (<A
152HREF="gnome-xml-encoding.html#XMLCHARENCODINGINPUTFUNC"
153>*xmlCharEncodingInputFunc</A
154>) (unsigned char *out,
155 int outlen,
156 unsigned char *in,
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000157 int *inlen);
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000158int (<A
159HREF="gnome-xml-encoding.html#XMLCHARENCODINGOUTPUTFUNC"
160>*xmlCharEncodingOutputFunc</A
161>) (unsigned char *out,
162 int outlen,
163 unsigned char *in,
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000164 int *inlen);
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000165typedef <A
166HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
167>xmlCharEncodingHandlerPtr</A
168>;
169void <A
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000170HREF="gnome-xml-encoding.html#XMLREGISTERCHARENCODINGHANDLER"
171>xmlRegisterCharEncodingHandler</A
172> (<A
173HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
174>xmlCharEncodingHandlerPtr</A
175> handler);
176<A
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000177HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
178>xmlCharEncodingHandlerPtr</A
179> <A
180HREF="gnome-xml-encoding.html#XMLGETCHARENCODINGHANDLER"
181>xmlGetCharEncodingHandler</A
182>
183 (<A
184HREF="gnome-xml-encoding.html#XMLCHARENCODING"
185>xmlCharEncoding</A
186> enc);
187<A
188HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
189>xmlCharEncodingHandlerPtr</A
190> <A
191HREF="gnome-xml-encoding.html#XMLFINDCHARENCODINGHANDLER"
192>xmlFindCharEncodingHandler</A
193>
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000194 (const char *name);
Daniel Veillard06047432000-04-24 11:33:38 +0000195<A
196HREF="gnome-xml-encoding.html#XMLCHARENCODING"
197>xmlCharEncoding</A
198> <A
199HREF="gnome-xml-encoding.html#XMLDETECTCHARENCODING"
200>xmlDetectCharEncoding</A
201> (unsigned char *in,
202 int len);
203<A
204HREF="gnome-xml-encoding.html#XMLCHARENCODING"
205>xmlCharEncoding</A
206> <A
207HREF="gnome-xml-encoding.html#XMLPARSECHARENCODING"
208>xmlParseCharEncoding</A
209> (const char *name);
210void <A
211HREF="gnome-xml-encoding.html#XMLINITCHARENCODINGHANDLERS"
212>xmlInitCharEncodingHandlers</A
213> (void);</PRE
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000214></TD
215></TR
216></TABLE
217></DIV
218><DIV
219CLASS="REFSECT1"
220><A
Daniel Veillard06047432000-04-24 11:33:38 +0000221NAME="AEN10955"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000222></A
223><H2
224>Description</H2
225><P
226></P
227></DIV
228><DIV
229CLASS="REFSECT1"
230><A
Daniel Veillard06047432000-04-24 11:33:38 +0000231NAME="AEN10958"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000232></A
233><H2
234>Details</H2
235><DIV
236CLASS="REFSECT2"
237><A
Daniel Veillard06047432000-04-24 11:33:38 +0000238NAME="AEN10960"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000239></A
240><H3
241><A
242NAME="XMLCHARENCODING"
243></A
244>enum xmlCharEncoding</H3
245><TABLE
246BORDER="0"
247BGCOLOR="#D6E8FF"
248WIDTH="100%"
249CELLPADDING="6"
250><TR
251><TD
252><PRE
253CLASS="PROGRAMLISTING"
254>typedef enum {
255 XML_CHAR_ENCODING_ERROR= -1, /* No char encoding detected */
256 XML_CHAR_ENCODING_NONE= 0, /* No char encoding detected */
257 XML_CHAR_ENCODING_UTF8= 1, /* UTF-8 */
258 XML_CHAR_ENCODING_UTF16LE= 2, /* UTF-16 little endian */
259 XML_CHAR_ENCODING_UTF16BE= 3, /* UTF-16 big endian */
260 XML_CHAR_ENCODING_UCS4LE= 4, /* UCS-4 little endian */
261 XML_CHAR_ENCODING_UCS4BE= 5, /* UCS-4 big endian */
262 XML_CHAR_ENCODING_EBCDIC= 6, /* EBCDIC uh! */
263 XML_CHAR_ENCODING_UCS4_2143=7, /* UCS-4 unusual ordering */
264 XML_CHAR_ENCODING_UCS4_3412=8, /* UCS-4 unusual ordering */
265 XML_CHAR_ENCODING_UCS2= 9, /* UCS-2 */
266 XML_CHAR_ENCODING_8859_1= 10,/* ISO-8859-1 ISO Latin 1 */
267 XML_CHAR_ENCODING_8859_2= 11,/* ISO-8859-2 ISO Latin 2 */
268 XML_CHAR_ENCODING_8859_3= 12,/* ISO-8859-3 */
269 XML_CHAR_ENCODING_8859_4= 13,/* ISO-8859-4 */
270 XML_CHAR_ENCODING_8859_5= 14,/* ISO-8859-5 */
271 XML_CHAR_ENCODING_8859_6= 15,/* ISO-8859-6 */
272 XML_CHAR_ENCODING_8859_7= 16,/* ISO-8859-7 */
273 XML_CHAR_ENCODING_8859_8= 17,/* ISO-8859-8 */
274 XML_CHAR_ENCODING_8859_9= 18,/* ISO-8859-9 */
275 XML_CHAR_ENCODING_2022_JP= 19,/* ISO-2022-JP */
276 XML_CHAR_ENCODING_SHIFT_JIS=20,/* Shift_JIS */
277 XML_CHAR_ENCODING_EUC_JP= 21 /* EUC-JP */
278} xmlCharEncoding;</PRE
279></TD
280></TR
281></TABLE
282><P
283></P
284></DIV
285><HR><DIV
286CLASS="REFSECT2"
287><A
Daniel Veillard06047432000-04-24 11:33:38 +0000288NAME="AEN10965"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000289></A
290><H3
291><A
292NAME="XMLCHARENCODINGINPUTFUNC"
293></A
294>xmlCharEncodingInputFunc ()</H3
295><TABLE
296BORDER="0"
297BGCOLOR="#D6E8FF"
298WIDTH="100%"
299CELLPADDING="6"
300><TR
301><TD
302><PRE
303CLASS="PROGRAMLISTING"
304>int (*xmlCharEncodingInputFunc) (unsigned char *out,
305 int outlen,
306 unsigned char *in,
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000307 int *inlen);</PRE
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000308></TD
309></TR
310></TABLE
311><P
312></P
313><DIV
314CLASS="INFORMALTABLE"
315><P
316></P
317><TABLE
318BORDER="0"
319WIDTH="100%"
320BGCOLOR="#FFD0D0"
321CELLSPACING="0"
322CELLPADDING="4"
323CLASS="CALSTABLE"
324><TR
325><TD
326WIDTH="20%"
327ALIGN="RIGHT"
328VALIGN="TOP"
329><TT
330CLASS="PARAMETER"
331><I
332>out</I
333></TT
334>&nbsp;:</TD
335><TD
336WIDTH="80%"
337ALIGN="LEFT"
338VALIGN="TOP"
339>&nbsp;</TD
340></TR
341><TR
342><TD
343WIDTH="20%"
344ALIGN="RIGHT"
345VALIGN="TOP"
346><TT
347CLASS="PARAMETER"
348><I
349>outlen</I
350></TT
351>&nbsp;:</TD
352><TD
353WIDTH="80%"
354ALIGN="LEFT"
355VALIGN="TOP"
356>&nbsp;</TD
357></TR
358><TR
359><TD
360WIDTH="20%"
361ALIGN="RIGHT"
362VALIGN="TOP"
363><TT
364CLASS="PARAMETER"
365><I
366>in</I
367></TT
368>&nbsp;:</TD
369><TD
370WIDTH="80%"
371ALIGN="LEFT"
372VALIGN="TOP"
373>&nbsp;</TD
374></TR
375><TR
376><TD
377WIDTH="20%"
378ALIGN="RIGHT"
379VALIGN="TOP"
380><TT
381CLASS="PARAMETER"
382><I
383>inlen</I
384></TT
385>&nbsp;:</TD
386><TD
387WIDTH="80%"
388ALIGN="LEFT"
389VALIGN="TOP"
390>&nbsp;</TD
391></TR
392><TR
393><TD
394WIDTH="20%"
395ALIGN="RIGHT"
396VALIGN="TOP"
397><I
398CLASS="EMPHASIS"
399>Returns</I
400> :</TD
401><TD
402WIDTH="80%"
403ALIGN="LEFT"
404VALIGN="TOP"
405>&nbsp;</TD
406></TR
407></TABLE
408><P
409></P
410></DIV
411></DIV
412><HR><DIV
413CLASS="REFSECT2"
414><A
Daniel Veillard06047432000-04-24 11:33:38 +0000415NAME="AEN10995"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000416></A
417><H3
418><A
419NAME="XMLCHARENCODINGOUTPUTFUNC"
420></A
421>xmlCharEncodingOutputFunc ()</H3
422><TABLE
423BORDER="0"
424BGCOLOR="#D6E8FF"
425WIDTH="100%"
426CELLPADDING="6"
427><TR
428><TD
429><PRE
430CLASS="PROGRAMLISTING"
431>int (*xmlCharEncodingOutputFunc) (unsigned char *out,
432 int outlen,
433 unsigned char *in,
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000434 int *inlen);</PRE
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000435></TD
436></TR
437></TABLE
438><P
439></P
440><DIV
441CLASS="INFORMALTABLE"
442><P
443></P
444><TABLE
445BORDER="0"
446WIDTH="100%"
447BGCOLOR="#FFD0D0"
448CELLSPACING="0"
449CELLPADDING="4"
450CLASS="CALSTABLE"
451><TR
452><TD
453WIDTH="20%"
454ALIGN="RIGHT"
455VALIGN="TOP"
456><TT
457CLASS="PARAMETER"
458><I
459>out</I
460></TT
461>&nbsp;:</TD
462><TD
463WIDTH="80%"
464ALIGN="LEFT"
465VALIGN="TOP"
466>&nbsp;</TD
467></TR
468><TR
469><TD
470WIDTH="20%"
471ALIGN="RIGHT"
472VALIGN="TOP"
473><TT
474CLASS="PARAMETER"
475><I
476>outlen</I
477></TT
478>&nbsp;:</TD
479><TD
480WIDTH="80%"
481ALIGN="LEFT"
482VALIGN="TOP"
483>&nbsp;</TD
484></TR
485><TR
486><TD
487WIDTH="20%"
488ALIGN="RIGHT"
489VALIGN="TOP"
490><TT
491CLASS="PARAMETER"
492><I
493>in</I
494></TT
495>&nbsp;:</TD
496><TD
497WIDTH="80%"
498ALIGN="LEFT"
499VALIGN="TOP"
500>&nbsp;</TD
501></TR
502><TR
503><TD
504WIDTH="20%"
505ALIGN="RIGHT"
506VALIGN="TOP"
507><TT
508CLASS="PARAMETER"
509><I
510>inlen</I
511></TT
512>&nbsp;:</TD
513><TD
514WIDTH="80%"
515ALIGN="LEFT"
516VALIGN="TOP"
517>&nbsp;</TD
518></TR
519><TR
520><TD
521WIDTH="20%"
522ALIGN="RIGHT"
523VALIGN="TOP"
524><I
525CLASS="EMPHASIS"
526>Returns</I
527> :</TD
528><TD
529WIDTH="80%"
530ALIGN="LEFT"
531VALIGN="TOP"
532>&nbsp;</TD
533></TR
534></TABLE
535><P
536></P
537></DIV
538></DIV
539><HR><DIV
540CLASS="REFSECT2"
541><A
Daniel Veillard06047432000-04-24 11:33:38 +0000542NAME="AEN11025"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000543></A
544><H3
545><A
546NAME="XMLCHARENCODINGHANDLERPTR"
547></A
548>xmlCharEncodingHandlerPtr</H3
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000549><P
550></P
551></DIV
552><HR><DIV
553CLASS="REFSECT2"
554><A
Daniel Veillard06047432000-04-24 11:33:38 +0000555NAME="AEN11029"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000556></A
557><H3
558><A
559NAME="XMLREGISTERCHARENCODINGHANDLER"
560></A
561>xmlRegisterCharEncodingHandler ()</H3
562><TABLE
563BORDER="0"
564BGCOLOR="#D6E8FF"
565WIDTH="100%"
566CELLPADDING="6"
567><TR
568><TD
569><PRE
570CLASS="PROGRAMLISTING"
571>void xmlRegisterCharEncodingHandler (<A
572HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
573>xmlCharEncodingHandlerPtr</A
574> handler);</PRE
575></TD
576></TR
577></TABLE
578><P
579>Register the char encoding handler, surprizing, isn't it ?</P
580><P
581></P
582><DIV
583CLASS="INFORMALTABLE"
584><P
585></P
586><TABLE
587BORDER="0"
588WIDTH="100%"
589BGCOLOR="#FFD0D0"
590CELLSPACING="0"
591CELLPADDING="4"
592CLASS="CALSTABLE"
593><TR
594><TD
595WIDTH="20%"
596ALIGN="RIGHT"
597VALIGN="TOP"
598><TT
599CLASS="PARAMETER"
600><I
601>handler</I
602></TT
603>&nbsp;:</TD
604><TD
605WIDTH="80%"
606ALIGN="LEFT"
607VALIGN="TOP"
Daniel Veillard06047432000-04-24 11:33:38 +0000608>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000609></TR
610></TABLE
611><P
612></P
613></DIV
614></DIV
615><HR><DIV
616CLASS="REFSECT2"
617><A
Daniel Veillard06047432000-04-24 11:33:38 +0000618NAME="AEN11045"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000619></A
620><H3
621><A
622NAME="XMLGETCHARENCODINGHANDLER"
623></A
624>xmlGetCharEncodingHandler ()</H3
625><TABLE
626BORDER="0"
627BGCOLOR="#D6E8FF"
628WIDTH="100%"
629CELLPADDING="6"
630><TR
631><TD
632><PRE
633CLASS="PROGRAMLISTING"
634><A
635HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
636>xmlCharEncodingHandlerPtr</A
637> xmlGetCharEncodingHandler
638 (<A
639HREF="gnome-xml-encoding.html#XMLCHARENCODING"
640>xmlCharEncoding</A
641> enc);</PRE
642></TD
643></TR
644></TABLE
645><P
646>Search in the registrered set the handler able to read/write that encoding.</P
647><P
648></P
649><DIV
650CLASS="INFORMALTABLE"
651><P
652></P
653><TABLE
654BORDER="0"
655WIDTH="100%"
656BGCOLOR="#FFD0D0"
657CELLSPACING="0"
658CELLPADDING="4"
659CLASS="CALSTABLE"
660><TR
661><TD
662WIDTH="20%"
663ALIGN="RIGHT"
664VALIGN="TOP"
665><TT
666CLASS="PARAMETER"
667><I
668>enc</I
669></TT
670>&nbsp;:</TD
671><TD
672WIDTH="80%"
673ALIGN="LEFT"
674VALIGN="TOP"
Daniel Veillard06047432000-04-24 11:33:38 +0000675>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000676></TR
677><TR
678><TD
679WIDTH="20%"
680ALIGN="RIGHT"
681VALIGN="TOP"
682><I
683CLASS="EMPHASIS"
684>Returns</I
685> :</TD
686><TD
687WIDTH="80%"
688ALIGN="LEFT"
689VALIGN="TOP"
Daniel Veillard06047432000-04-24 11:33:38 +0000690>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000691></TR
692></TABLE
693><P
694></P
695></DIV
696></DIV
697><HR><DIV
698CLASS="REFSECT2"
699><A
Daniel Veillard06047432000-04-24 11:33:38 +0000700NAME="AEN11066"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000701></A
702><H3
703><A
704NAME="XMLFINDCHARENCODINGHANDLER"
705></A
706>xmlFindCharEncodingHandler ()</H3
707><TABLE
708BORDER="0"
709BGCOLOR="#D6E8FF"
710WIDTH="100%"
711CELLPADDING="6"
712><TR
713><TD
714><PRE
715CLASS="PROGRAMLISTING"
716><A
717HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
718>xmlCharEncodingHandlerPtr</A
719> xmlFindCharEncodingHandler
720 (const char *name);</PRE
721></TD
722></TR
723></TABLE
724><P
725></P
726><DIV
727CLASS="INFORMALTABLE"
728><P
729></P
730><TABLE
731BORDER="0"
732WIDTH="100%"
733BGCOLOR="#FFD0D0"
734CELLSPACING="0"
735CELLPADDING="4"
736CLASS="CALSTABLE"
737><TR
738><TD
739WIDTH="20%"
740ALIGN="RIGHT"
741VALIGN="TOP"
742><TT
743CLASS="PARAMETER"
744><I
745>name</I
746></TT
747>&nbsp;:</TD
748><TD
749WIDTH="80%"
750ALIGN="LEFT"
751VALIGN="TOP"
752>&nbsp;</TD
753></TR
754><TR
755><TD
756WIDTH="20%"
757ALIGN="RIGHT"
758VALIGN="TOP"
759><I
760CLASS="EMPHASIS"
761>Returns</I
762> :</TD
763><TD
764WIDTH="80%"
765ALIGN="LEFT"
766VALIGN="TOP"
767>&nbsp;</TD
768></TR
769></TABLE
770><P
771></P
772></DIV
773></DIV
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000774><HR><DIV
775CLASS="REFSECT2"
776><A
Daniel Veillard06047432000-04-24 11:33:38 +0000777NAME="AEN11085"
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000778></A
779><H3
780><A
Daniel Veillard06047432000-04-24 11:33:38 +0000781NAME="XMLDETECTCHARENCODING"
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000782></A
Daniel Veillard06047432000-04-24 11:33:38 +0000783>xmlDetectCharEncoding ()</H3
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000784><TABLE
785BORDER="0"
786BGCOLOR="#D6E8FF"
787WIDTH="100%"
788CELLPADDING="6"
789><TR
790><TD
791><PRE
792CLASS="PROGRAMLISTING"
Daniel Veillard06047432000-04-24 11:33:38 +0000793><A
794HREF="gnome-xml-encoding.html#XMLCHARENCODING"
795>xmlCharEncoding</A
796> xmlDetectCharEncoding (unsigned char *in,
797 int len);</PRE
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000798></TD
799></TR
800></TABLE
801><P
Daniel Veillard06047432000-04-24 11:33:38 +0000802>Guess the encoding of the entity using the first bytes of the entity content
803accordingly of the non-normative appendix F of the XML-1.0 recommendation.</P
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000804><P
805></P
806><DIV
807CLASS="INFORMALTABLE"
808><P
809></P
810><TABLE
811BORDER="0"
812WIDTH="100%"
813BGCOLOR="#FFD0D0"
814CELLSPACING="0"
815CELLPADDING="4"
816CLASS="CALSTABLE"
817><TR
818><TD
819WIDTH="20%"
820ALIGN="RIGHT"
821VALIGN="TOP"
822><TT
823CLASS="PARAMETER"
824><I
Daniel Veillard06047432000-04-24 11:33:38 +0000825>in</I
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000826></TT
827>&nbsp;:</TD
828><TD
829WIDTH="80%"
830ALIGN="LEFT"
831VALIGN="TOP"
Daniel Veillard06047432000-04-24 11:33:38 +0000832>&nbsp;</TD
833></TR
834><TR
835><TD
836WIDTH="20%"
837ALIGN="RIGHT"
838VALIGN="TOP"
839><TT
840CLASS="PARAMETER"
841><I
842>len</I
843></TT
844>&nbsp;:</TD
845><TD
846WIDTH="80%"
847ALIGN="LEFT"
848VALIGN="TOP"
849>&nbsp;</TD
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000850></TR
851><TR
852><TD
853WIDTH="20%"
854ALIGN="RIGHT"
855VALIGN="TOP"
856><I
857CLASS="EMPHASIS"
858>Returns</I
859> :</TD
860><TD
861WIDTH="80%"
862ALIGN="LEFT"
863VALIGN="TOP"
Daniel Veillard06047432000-04-24 11:33:38 +0000864>&nbsp;</TD
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000865></TR
866></TABLE
867><P
868></P
869></DIV
870></DIV
Daniel Veillard06047432000-04-24 11:33:38 +0000871><HR><DIV
872CLASS="REFSECT2"
873><A
874NAME="AEN11109"
875></A
876><H3
877><A
878NAME="XMLPARSECHARENCODING"
879></A
880>xmlParseCharEncoding ()</H3
881><TABLE
882BORDER="0"
883BGCOLOR="#D6E8FF"
884WIDTH="100%"
885CELLPADDING="6"
886><TR
887><TD
888><PRE
889CLASS="PROGRAMLISTING"
890><A
891HREF="gnome-xml-encoding.html#XMLCHARENCODING"
892>xmlCharEncoding</A
893> xmlParseCharEncoding (const char *name);</PRE
894></TD
895></TR
896></TABLE
897><P
898>Conpare the string to the known encoding schemes already known. Note
899that the comparison is case insensitive accordingly to the section
900[XML] 4.3.3 Character Encoding in Entities.</P
901><P
902></P
903><DIV
904CLASS="INFORMALTABLE"
905><P
906></P
907><TABLE
908BORDER="0"
909WIDTH="100%"
910BGCOLOR="#FFD0D0"
911CELLSPACING="0"
912CELLPADDING="4"
913CLASS="CALSTABLE"
914><TR
915><TD
916WIDTH="20%"
917ALIGN="RIGHT"
918VALIGN="TOP"
919><TT
920CLASS="PARAMETER"
921><I
922>name</I
923></TT
924>&nbsp;:</TD
925><TD
926WIDTH="80%"
927ALIGN="LEFT"
928VALIGN="TOP"
929>&nbsp;</TD
930></TR
931><TR
932><TD
933WIDTH="20%"
934ALIGN="RIGHT"
935VALIGN="TOP"
936><I
937CLASS="EMPHASIS"
938>Returns</I
939> :</TD
940><TD
941WIDTH="80%"
942ALIGN="LEFT"
943VALIGN="TOP"
944>&nbsp;</TD
945></TR
946></TABLE
947><P
948></P
949></DIV
950></DIV
951><HR><DIV
952CLASS="REFSECT2"
953><A
954NAME="AEN11129"
955></A
956><H3
957><A
958NAME="XMLINITCHARENCODINGHANDLERS"
959></A
960>xmlInitCharEncodingHandlers ()</H3
961><TABLE
962BORDER="0"
963BGCOLOR="#D6E8FF"
964WIDTH="100%"
965CELLPADDING="6"
966><TR
967><TD
968><PRE
969CLASS="PROGRAMLISTING"
970>void xmlInitCharEncodingHandlers (void);</PRE
971></TD
972></TR
973></TABLE
974><P
975>Initialize the char encoding support, it registers the default
976encoding supported.
977NOTE: while public theis function usually don't need to be called
978in normal processing.</P
979><P
980></P
981></DIV
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000982></DIV
983><DIV
984CLASS="NAVFOOTER"
985><BR
986CLEAR="all"><BR><TABLE
987WIDTH="100%"
988BORDER="0"
989BGCOLOR="#000000"
990CELLPADDING="1"
991CELLSPACING="0"
992><TR
993><TD
994WIDTH="25%"
995BGCOLOR="#C00000"
996ALIGN="left"
997><A
998HREF="gnome-xml-parserinternals.html"
999><FONT
1000COLOR="#FFFFFF"
1001SIZE="3"
1002><B
1003>&#60;&#60;&#60; Previous Page</B
1004></FONT
1005></A
1006></TD
1007><TD
1008WIDTH="25%"
1009BGCOLOR="#0000C0"
1010ALIGN="center"
1011><FONT
1012COLOR="#FFFFFF"
1013SIZE="3"
1014><B
1015><A
1016HREF="book1.html"
1017><FONT
1018COLOR="#FFFFFF"
1019SIZE="3"
1020><B
1021>Home</B
1022></FONT
1023></A
1024></B
1025></FONT
1026></TD
1027><TD
1028WIDTH="25%"
1029BGCOLOR="#00C000"
1030ALIGN="center"
1031><FONT
1032COLOR="#FFFFFF"
1033SIZE="3"
1034><B
1035><A
1036HREF="libxml-lib.html"
1037><FONT
1038COLOR="#FFFFFF"
1039SIZE="3"
1040><B
1041>Up</B
1042></FONT
1043></A
1044></B
1045></FONT
1046></TD
1047><TD
1048WIDTH="25%"
1049BGCOLOR="#C00000"
1050ALIGN="right"
1051><A
1052HREF="gnome-xml-debugxml.html"
1053><FONT
1054COLOR="#FFFFFF"
1055SIZE="3"
1056><B
1057>Next Page &#62;&#62;&#62;</B
1058></FONT
1059></A
1060></TD
1061></TR
1062><TR
1063><TD
1064COLSPAN="2"
1065ALIGN="left"
1066><FONT
1067COLOR="#FFFFFF"
1068SIZE="3"
1069><B
1070>parserInternals</B
1071></FONT
1072></TD
1073><TD
1074COLSPAN="2"
1075ALIGN="right"
1076><FONT
1077COLOR="#FFFFFF"
1078SIZE="3"
1079><B
1080>debugXML</B
1081></FONT
1082></TD
1083></TR
1084></TABLE
1085></DIV
1086></BODY
1087></HTML
1088>