Ah, I see what you're saying: I should be storing the 'mangled' form of the file name?
Our file uploads come via an ASP script which saves the 'proper' name, and I recently did a fix to unmangle that on the asp side and it appears to have broken the CF side... I'll have a play with it and see what I can come up with. Thanks for the tip. Dale Fraser wrote: > No it's your file name. > > Do what I said last time to work out the proper file name in coldfusion land. > > Regards > Dale Fraser > > > >> -----Original Message----- >> From: [email protected] [mailto:[EMAIL PROTECTED] On >> Behalf Of Haikal Saadh >> Sent: Wednesday, 22 March 2006 17:38 PM >> To: [email protected] >> Subject: [cfaussie] Re: cfcontent and unicode. >> >> >> I can't even cfread the file... with the name of the file hardcoded, it >> gives me that same error: >> >> >> An error occurred when performing a file operation read on file >> \\some\where\ドリフã�®å��曲メãƒãƒ‡ã‚£ãƒ¼.doc. >> >> >> I wonder if it's to do with the encoding of the actual source file? >> >> >> Dale Fraser wrote: >> >>> You can't do that. >>> >>> Try this >>> >>> 1. Create a page with a file upload box >>> 2. Pick that japaneese named file >>> 3. CFDUMP the content of the filename >>> >>> You will see it looks like Unicode, not Japanese characters. >>> >>> The charset is specifying the charset of the content of the file, not >>> >> the >> >>> content of the filename. >>> >>> Regards >>> Dale Fraser >>> >>> Regards >>> Dale Fraser >>> >>> >>> >>> >>>> -----Original Message----- >>>> From: [email protected] [mailto:[EMAIL PROTECTED] On >>>> Behalf Of Haikal Saadh >>>> Sent: Wednesday, 22 March 2006 17:16 PM >>>> To: '[email protected]' >>>> Subject: [cfaussie] cfcontent and unicode. >>>> >>>> >>>> Okay, I've got a chunk of code to enable the downloading the file. The >>>> code is something like: >>>> >>>> <cfheader name="Content-Disposition" value="attachment; filename=ドリフ >>>> の名曲メロディー.doc" /> >>>> <cfcontent type="application/msword; charset=utf-8" file="\\some\where\ >>>> ドリフの名曲メロディー.doc" /> >>>> >>>> Yet is doesn't seem to work? Firefox mangles the filename completely, >>>> and gives me a 0 byte file, whereas IE just sits there. >>>> >>>> The actual file itself does exist, and I can open off the server, but >>>> the downloads seem to not work. Any ideas? >>>> >>>> /Here's hoping the japanese characters don't get mangled in-transit >>>> //No, I can't actually read or write japanese... I just copied it from >>>> some where. Hope it's not an ad for used knickers or something... >>>> >>>> -- >>>> Haikal Saadh, Applications Programmer >>>> Teaching and Learning Support Services >>>> K405, Queensland University of Technology, Kelvin Grove Campus >>>> [EMAIL PROTECTED], 3864 8633 >>>> CRICOS No. 00213J >>>> >>>> >>>> >>>> >>> >>> >>> >> -- >> Haikal Saadh, Applications Programmer >> Teaching and Learning Support Services >> K405, Queensland University of Technology, Kelvin Grove Campus >> [EMAIL PROTECTED], 3864 8633 >> CRICOS No. 00213J >> >> >> > > > > > -- Haikal Saadh, Applications Programmer Teaching and Learning Support Services K405, Queensland University of Technology, Kelvin Grove Campus [EMAIL PROTECTED], 3864 8633 CRICOS No. 00213J --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~----------~----~----~----~------~----~------~--~---
