[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linking Emacs with libxml2
From: |
Andreas Schwab |
Subject: |
Re: Linking Emacs with libxml2 |
Date: |
Wed, 08 Sep 2010 16:25:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Lars Magne Ingebrigtsen <address@hidden> writes:
> 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
Do you mean encoding?
> 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.
Do you really need that C string? I think it would be more efficient if
you could pass it a function that delivers the characters while encoding
the buffer contents on the fly.
Otherwise, encode-coding-region should do what you need.
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Re: Linking Emacs with libxml2, (continued)
- Re: Linking Emacs with libxml2, Wojciech Meyer, 2010/09/06
- Re: Linking Emacs with libxml2, Chad Brown, 2010/09/06
- Re: Linking Emacs with libxml2, Lennart Borgman, 2010/09/06
- Re: Linking Emacs with libxml2, Chad Brown, 2010/09/06
- Re: Linking Emacs with libxml2, Chong Yidong, 2010/09/06
- Re: Linking Emacs with libxml2, joakim, 2010/09/06
- Re: Linking Emacs with libxml2, Jason Rumney, 2010/09/06
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/06
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/08
- Re: Linking Emacs with libxml2,
Andreas Schwab <=
- Re: Linking Emacs with libxml2, Stefan Monnier, 2010/09/08
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/08
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/08
- Re: Linking Emacs with libxml2, joakim, 2010/09/08
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/08
- Re: Linking Emacs with libxml2, Andreas Schwab, 2010/09/08
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/08
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/08
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/08
- Re: Linking Emacs with libxml2, Andreas Schwab, 2010/09/08