[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Re: [xml] xmlDocDumpMemoryEnc error



Yes I have read it.

The input I insert in my XML tree is taken by another XML file.
So I obtain this XML with a socket and then I parse it with

docind = xmlParseMemory(xmlstr, lenxmlstr);

Then I take the informations, for example:

body = xmlNodeListGetString(docind, figli->xmlChildrenNode, 1);

and insert them in my XML file. 

So I presume that libxml2 convert informations (body for example) in UTF 8 and then I haven't to do any encoding trasformations.

Am I doing any errors?

Marco



>On Tue, Jan 07, 2003 at 11:03:43AM -0000, spinmar interfree it wrote:
>> 
>> Hi,
>> 
>> I have found a strange error with xmlDocDumpMemoryEnc.
>> 
>> I build a XML file getting informations from different sources: at the end I'd 
>like to turn it into a char* with ISO-8859-1 encoding. > 
>> So I call:
>> 
>> xmlDocDumpMemoryEnc(doc, &bufptr, &size, "ISO-8859-1");
>> 
>> and the error I obtain is:
>> 
>> 
>> output conversion failed due to conv error
>> Bytes: 0xC3 0x3C 0x2F 0x41
>> xmlOutputBufferFlush: encoder error
>> 
>> As if the bytes  0xC3 0x3C 0x2F 0x41 take us to the error.
>> Which characters are they?
>> Every time I have these bytes I obtain this error.
>> 
>> How can I discover these bytes?
>
>  I can't provide more context information. The error is raised by the iconv 
>library when UTF8 serialized output is progressively transformed
>to the target encoding.
>
>> Can someone help me?
>
>  You pasted in the tree substrings which were not UTF8, check the input you 
>store in the tree for proper encoding. I assume you have
>read and understood:
>    http://xmlsoft.org/encoding.html
>
>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/
>_______________________________________________
>xml mailing list, project page  http://xmlsoft.org/
>xml gnome org
>http://mail.gnome.org/mailman/listinfo/xml
>
>

-----------------------------------------------------

Salve, il messaggio che hai ricevuto
è stato inviato per mezzo del sistema
di web mail interfree. Se anche tu vuoi 
una casella di posta free visita il
sito http://club.interfree.it
Ti aspettiamo!

-----------------------------------------------------





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]