emacs-devel
[Top][All Lists]
Advanced

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

Re: Linking Emacs with libxml2


From: Stefan Monnier
Subject: Re: Linking Emacs with libxml2
Date: Wed, 08 Sep 2010 16:40:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> I'll take a whack at providing an interface to htmlParseDoc(), then, if
>> nobody else beats me to it...
> My main problem is, of course, the most trivial one -- how do I take a
> (narrowed) buffer, apply the charset decoding methods, and then up with
> a C string that I can feed to the library?  There must be a convenient
> utility function somewhere, but I haven't been able to find it.

I don't think there's such a utility function.  But since the internal
encoding of multibyte buffers is a variant of utf-8, you should be able
to feed the internal byte-stream directly without extra decoding
(assuming libxml2 accepts utf-8 input, of course).


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]