[AOLSERVER] ns_httpget and various encodings

0 views
Skip to first unread message

Alex

unread,
Apr 23, 2008, 10:37:51 PM4/23/08
to AOLS...@listserv.aol.com
Hello All

I need to pull info from several sites by e.g. using ns_httpget.
However the problem is that encodings and languages on those sites may vary.

I could hijack ns_httpget proc and set the encoding there (like
fconfigure $rfd -encoding "utf-8").
And probably even add a new ns_httpget parameter for encoding.

But what would be the "standard" method of choosing the encoding "on the fly"?
Or even better, automatically setting the encoding depending on the
headers of the returned page?

Thanks,
~ Alex.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <list...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.

Bas Scheffers

unread,
Apr 23, 2008, 11:04:57 PM4/23/08
to AOLS...@listserv.aol.com
Not sure if that will help you here, but I abandoned ns_httpget in
favor of the stock Tcl ::http package. More options, maintained,
etc... It might already handle this correctly!

Bas.

Jay Rohr

unread,
Apr 24, 2008, 9:37:40 AM4/24/08
to AOLS...@listserv.aol.com
Agree, and it does handle the encoding (if the http headers are correct)
jayrohr.vcf
Reply all
Reply to author
Forward
0 new messages