Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

C++ HTMl Encoding/Decoding Library

已查看 26 次
跳至第一个未读帖子

tushar...@gmail.com

未读,
2007年12月3日 20:11:132007/12/3
收件人
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

未读,
2007年12月3日 22:08:232007/12/3
收件人

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

BobR

未读,
2007年12月4日 15:36:342007/12/4
收件人

<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

未读,
2007年12月4日 19:09:122007/12/4
收件人
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

未读,
2007年12月4日 19:11:202007/12/4
收件人

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

tushar...@gmail.com

未读,
2007年12月4日 19:12:122007/12/4
收件人
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 个新帖子