I actually think you are encoding it correctly; i believe this could be 
an nginx problem.   Its a two way process; you have to encode it and 
they have to decode it.  Either party can fail.


Brad B. wrote:
> the filename is retrieved using get('serverfile')
> if i dump get('serverfile') before setting the headers it looks just
> fine in all cases.
> I've also tried encoding the filename before using the
> javax.mail.internet.mimeutility
> 
> <cfheader name="X-Accel-Redirect" value="/files/
> #createObject('java','javax.mail.internet.MimeUtility').encodeWord(get('serverfile'),'utf-8','b')#"
> charset="utf-8">
> 
> i've tried several values - this works as well except of course when
> the filename contains non ascii characters which
> nginx error reports:
> 15:05:30 [error] 3423#0: *254 open() "/srv/files/=" failed (2: No such
> file or directory)
> which looks like what is being sent is only an equals sign when the
> mimeutility encoding is used.

--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official blog @ http://blog.openbluedragon.org/
!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to