Forum OpenACS Q&A: Response to Is AOLserver 3.4 a big deal?

Collapse
Posted by Henry Minsky on
I do see there are hooks for encoding conversion for .adp files,
but I don't see anything for handling conversion when using plain ns_return or ns_write calls. So the question I have is
how the developer chooses  what output encoding conversion is used
from a .tcl script, i.e., the tcl script generates UTF8 strings, so
how and where do you tell AOLserver what charset to convert to when
ns_write or ns_return are called?

Same thing goes for reading POSTed or GET data from the query,
how do you specify what conversion is used when the data is read
from the browser into AOLserver's internal query data structure.

I am sure there are reasonable ways to make this work, it just doesn't
look like anyone has done it. At least the ArsDigita version of AOLserver has some mechanisms to do this. I am not sure what
the new AOLserver model is of encodings -- they seem to have added an
[ns_conn encoding] command but I can't find the documentation on it.

Anyway, I am taking this discussion over to OpenACS4 Design forum.