On 14.08.2006, at 18:30, Michael Lex wrote:

ns_conn encoding and that
ns_return is completely independant of anything you set with ns_conn
encoding (if there's a default OutputCharset)

Hmmm???

Is this really so? I mean, I would expect the [ns_return]
to ignore any optional encoding stuff and delegate all
to [ns_conn] in the similar way how you use channels in Tcl.
After all, you do not [puts] with an encoding. You just [puts]
and the [fconfigure channel -encoding] sets the channel to the
desired encoding.
I mean, If I wrote that, I'd do it so.

You will have to give me some hints on how you use all
those commands.

What we do is just [ns_return] and never fiddle with
that -binary switch (hey, I didn't even know it existed).
Also, we never use [ns_conn] to manipulate any encoding
so everthing is "default" and just works. So we never had
to mingle with encodings (thankfully).

Cheers
Zoran

Reply via email to