[I18n-sig] XML entity codec (Re: Output encodings again)
M.-A. Lemburg
mal@lemburg.com
Wed, 29 Nov 2000 19:21:53 +0100
uche.ogbuji@fourthought.com wrote:
>
> > uche.ogbuji@fourthought.com wrote:
>
> > > Might I have any pointers? Any cheat-sheets? I'll probably be implementing
> > > in C.
> >
> > I think the easiest would be using the C implementation of the
> > charmap codec as template and working your way onward from there.
> >
> > The codec provides all necessary functionality except that it
> > can't handle n-1 and 1-n encodings which you would obviously
> > need for XML entities. Shouldn't be hard to add though...
> >
> > BTW, I think such a codec would make a good addition to the
> > standard lib's encodings package, so if you are willing to
> > contribute this, I'd promote adding it to the package.
>
> OK, let's make a deal. I write it, you help me out when I get stuck, we add
> it to the std libs. Everyone is happy.
>
> Deal?
Deal :-)
--
Marc-Andre Lemburg
______________________________________________________________________
Company: http://www.egenix.com/
Consulting: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/