On Sunday, September 25, 2011 at 06:42 , Klaus Hofeditz ]project-open[ wrote: > Hi Guan, > > - Show quoted message - > "[encoding system]" returns utf-8 just before running "ns_returnfile 200 > $type $file" > > If I set "encoding system iso8859-1" before "ns_returnfile 200 $type $file" > rp_serve_concrete_file also fails. > > ./k I have had some experiences like this in the past but they were always fine when encoding system returned utf-8 in the relevant context.
Pardon me if you have been through this, but a couple of diagnostic questions: 1) How confident are you that the underlying file name is UTF-8? I know you used convmv, but have you tried reading the file name directly with a C program that uses system calls? 2) Have you tried converting the file name from Tcl's internal 16-bit encoding to utf-8 first? Like this: ns_returnfile 200 $type [encoding convertto utf-8 $file] /Guan -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <lists...@listserv.aol.com> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.