Reuven, you're having problems with character encodings when reading
in ADP files from disk, right?
Did you look at
Rob's and
Henry's
docs on AOLserver character set issues?
In particular, Henry gives an example
rp_handle_adp_request
proc, which reads in .adp files
like so:
set mimetype [ns_guesstype [ad_conn file]]
set encoding [ns_encodingfortype $mimetype]
set fd [open [ad_conn file] r]
fconfigure $fd -encoding $encoding
set template [read $fd]
close $fd