[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] Build DOM tree manually from ASCII file and getting data into xmlChar
- From: Daniel Veillard <veillard redhat com>
- To: Hannu Krosing <hannu tm ee>
- Cc: Steve Williams <swilliams rinax com>, xml gnome org
- Subject: Re: [xml] Build DOM tree manually from ASCII file and getting data into xmlChar
- Date: Thu, 1 Aug 2002 17:50:50 -0400
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:
> > int
> > 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
--
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/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]