Re: Encode HTML CDATA name token

2010-09-20 Thread Gregor Horvath
Am Mon, 20 Sep 2010 21:36:46 +1200 schrieb Lawrence D'Oliveiro : > In message <20100920104546.3699e...@valun>, Gregor Horvath wrote: > > > Is there a encoder / decoder in Python that can convert arbitrary > > text to and from this encoding in an readable manner? > > Not sure if this is already i

Re: Encode HTML CDATA name token

2010-09-20 Thread Lawrence D'Oliveiro
In message <20100920104546.3699e...@valun>, Gregor Horvath wrote: > Is there a encoder / decoder in Python that can convert arbitrary text > to and from this encoding in an readable manner? Not sure if this is already in Python, but . -- http://mail.python.o

Re: Encode HTML CDATA name token

2010-09-20 Thread Steven D'Aprano
On Mon, 20 Sep 2010 10:45:46 +0200, Gregor Horvath wrote: > Hi, > > ID and NAME tokens must begin with a letter ([A-Za-z]) and may be > followed by any number of letters, digits ([0-9]), hyphens ("-"), > underscores ("_"), colons (":"), and periods ("."). [1] > > Is there a encoder / decoder in

Encode HTML CDATA name token

2010-09-20 Thread Gregor Horvath
Hi, ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods ("."). [1] Is there a encoder / decoder in Python that can convert arbitrary text to and from this encoding in an re