Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

C++ HTMl Encoding/Decoding Library

26 views
Skip to first unread message

tushar...@gmail.com

unread,
Dec 3, 2007, 8:11:13 PM12/3/07
to
Hi,

I've been looking around for a library to encode/decode HTML entities
similar to the HTML::Entities that can be used with Perl.

i.e. "& amp ;" should be converted to "&" and vice versa (although the
reverse direction isnt that important"

I suppose I can write up a small class to do this myself, but I was
wondering if such a library exists.

Thx !

Tushar

Rahul

unread,
Dec 3, 2007, 10:08:23 PM12/3/07
to

Could consider parser tools like lex, yacc, bison for decoding...

BobR

unread,
Dec 4, 2007, 3:36:34 PM12/4/07
to

<tushar...@gmail.com> wrote in message...

wxWidgets has some HTML classes. Maybe take a look at their code.
wxWidgets URL: http://www.wxwidgets.org

--
Bob R
POVrookie


tushar...@gmail.com

unread,
Dec 4, 2007, 7:09:12 PM12/4/07
to
Thx for the replies everyone. I had a look at the Firefox code and
found what I wanted, sort of anyways. What I'm looking for now is
this :

Given an HTML sequence like &quot; I have the corresponding unicode
character value (In this case, 34). How can I display this in C/C++ ?
Doing something like printf("\u0034") gives me an error message saying
"\u0016 is not a valid universal character"

tushar...@gmail.com

unread,
Dec 4, 2007, 7:11:20 PM12/4/07
to

Errata: I do a printf("\u0012"), and the error message I get is
"\u0012 is not a valid universal character"

tushar...@gmail.com

unread,
Dec 4, 2007, 7:12:12 PM12/4/07
to
On Dec 4, 4:09 pm, tushar.sax...@gmail.com wrote:

Errata: I do a printf("\u0012"), and the error message I get is
"\u0012 is not a valid universal character"

0 new messages