Re: [xml] Follow-up: Tips for correct encoding handling when building documents from scratch?

On Thu, Jan 17, 2002 at 01:09:51PM +0100, Henke, Markus wrote:
If i got it right, xmlEncodeEntitiesReentrant() consumes UTF-8 encoded
character buffer (as any libxml internals), allthough it seems to work
also for iso-8859-1, but i'm not shure about that.

  No it doesn't, it is not intended to process non UTF-8

Now we come to the root of the matter: Is it mandatory to do the
character conversion to UTF-8 on application level, something along

  I have said it once, I have said it twice, I have pointed you at
the docs stating it. It is mandatory to make that conversion
at the application level. I won't repeat it again, I'm starting to
get fed up, because you always repeat the same questions, and apparently
don't dare looking at the API, code, docs or answers. It's now your
4th mail on this exact same topic, I have no other answer to make.

Or is it possible to use the (default/extended) libxml encoding support,
best while constructing the new nodes?

  No it is NOT possible. You can use the encoding API to convert *strings*
but you will have to make those calls in *your* application code.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

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