Re: [xml] Build DOM tree manually from ASCII file and getting data into xmlChar

On Thu, Aug 01, 2002 at 08:53:47PM +0200, Hannu Krosing wrote:
On Thu, 2002-08-01 at 10:49, Daniel Veillard wrote:

  French characters (well accented ones for example) are not in ASCII
but probably in ISO Latin 1, use the following function to convert them
before passing the strings to the API:
  isolat1ToUTF8(unsigned char* out, int *outlen,
                const unsigned char* in, int *inlen) {

Why is it "unsigned char* out" and not "xmlChar* out" ?

  for conformance with iconv() interfaces

Or are they actually made the same by some macro ?

  No need for macros in both case it's a 0 terminated sequence of bytes
you just need to be sure it's in the UTF8 encoding to use it for xmlChar *


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]