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.
On 24/04/2008, at 12:07 PM, Alex wrote:
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 <[EMAIL PROTECTED]
> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the
Subject: field of your email blank.
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.