This is only a problem on AOLserver 4.0 (at least). It works on
AOLserver3.3+ad13.

This leads me to suspect that there might be a charset issue that is in
3.3+ad13 that isn't in 4.0.

Dave

On Thu, Jan 08, 2004 at 03:20:09PM -0500, Dave Bauer wrote:
> I found out that the problem is not in the saving of the file, but in
> the return of the utf-8 file from the filesystem.
>
>
> I found out that using
>
> ns_returnfile [encoding convertto [encoding system] $filename]
>
> would allow aolserver to find the utf-8 filename from the filesystem and
> return the correct file.
>
> I discovered this by accident when I learned that aolserver by itself
> and OpenACS behaved differently. The filter on the GET method in OpenACS
> calls ns_returnfile. If it is called without the encoding command it
> fails in the same way as the standard AOLserver only GET behavior.
>
> I looked in fastpath.c, but I couldn't find out where i might need to
> look to see how it is working.
>
> Using Dossy's suggestion worked partially, but it actually stored
> incorrect bytes in the filename as far as I could tell.
>
> So I am trying to get consistent behavior from ns_returnfile and
> whatever the standard GET response is from AOLserver.
>
> Dave
>
> On Thu, Jan 01, 2004 at 08:46:25PM -0500, Dossy wrote:
> > On 2004.01.01, Dave Bauer <[EMAIL PROTECTED]> wrote:
> > > The code that creates the file looks like this:
> > >
> > > set fd [open $filename w+]
> > > ns_writecontent $fd
> > >
> > > The file in my filesystem ends up as "res-?"
> >
> > Try:
> >
> >     set fd [open [encoding convertto utf-8 $filename] w+]
> >
> > -- Dossy
> >
> > --
> > Dossy Shiobara                       mail: [EMAIL PROTECTED]
> > Panoptic Computer Network             web: http://www.panoptic.com/
> >   "He realized the fastest way to change is to laugh at your own
> >     folly -- then you can let go and quickly move on." (p. 70)
> >
> >
> > --
> > 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.
> >
>
> --
> Dave Bauer
> [EMAIL PROTECTED]
> http://www.thedesignexperience.org
>
>
> --
> 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.
>

--
Dave Bauer
[EMAIL PROTECTED]
http://www.thedesignexperience.org


--
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.

Reply via email to