Hi Guan, [file readable $file] returns '1' -> this might be evidence enough for a UTF-8 file nameHow confident are you that the underlying file name is UTF-8? ns_returnfile 200 $type [encoding convertto utf-8 $file]negative :( tx for looking into this ! ./k On 25/09/2011 16:57, Guan Yang wrote: 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. ./kI 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. --
Klaus Hofeditz mailto:klaus.hofed...@project-open.com http://www.project-open.com
|
[AOLSERVER] AOLserver 4.5.0 - ns_returnfile does not find file - file name contains special chars
Klaus Hofeditz ]project-open[ Sun, 25 Sep 2011 16:22:12 -0700
- Re: [AOLSERVER] AOLSERVER Digest - 22 Sep 20... Guan Yang
- Re: [AOLSERVER] AOLSERVER Digest - 22 S... Klaus Hofeditz ]project-open[
- Re: [AOLSERVER] Fwd: AOLserver 4.5.... Guan Yang
- [AOLSERVER] AOLserver 4.5.0 - n... Klaus Hofeditz ]project-open[