I had the same problem with CF and BlueDragon and I had to write something
like this to change the file name on the server.. I kept the original name
in my database and when I serve the file with cfcontent I rename to the
original name. Since my variable name are in french, the first one is all
caracter capitalize and not with accent and the second variable are there
equivalent without accent.


<cfset accentminmaj = Chr(193) & "," & Chr(194) & "," & Chr(195) & "," &
Chr(196) & "," & Chr(197) & "," & Chr(224) & "," & Chr(225) & "," & Chr(226)
& "," & Chr(227) & "," & Chr(228) & "," & Chr(229) & "," & Chr(200) & "," &
Chr(201) & "," & Chr(202) & "," & Chr(203) & "," & Chr(232) & "," & Chr(233)
& "," & Chr(234) & "," & Chr(235) & "," & Chr(204) & "," & Chr(205) & "," &
Chr(206) & "," & Chr(207) & "," & Chr(236) & "," & Chr(237) & "," & Chr(238)
& "," & Chr(239) & "," & Chr(210) & "," & Chr(211) & "," & Chr(212) & "," &
Chr(213) & "," & Chr(214) & "," & Chr(242) & "," & Chr(243) & "," & Chr(244)
& "," & Chr(245) & "," & Chr(246) & "," & Chr(217) & "," & Chr(218) & "," &
Chr(219) & "," & Chr(220) & "," & Chr(249) & "," & Chr(250) & "," & Chr(251)
& "," & Chr(252) & "," & Chr(209) & "," & Chr(241) & "," & Chr(199) & "," &
Chr(231) & "," & Chr(221) & "," & Chr(253)>


<cfset sansaccentminmaj = Chr(97) & "," & Chr(97) & "," & Chr(97) & "," &
Chr(97) & "," & Chr(97) & "," & Chr(97) & "," & Chr(97) & "," & Chr(97) &
"," & Chr(97) & "," & Chr(97) & "," & Chr(97) & "," & Chr(101) & "," &
Chr(101) & "," & Chr(101) & "," & Chr(101) & "," & Chr(101) & "," & Chr(101)
& "," & Chr(101) & "," & Chr(101) & "," & Chr(105) & "," & Chr(105) & "," &
Chr(105) & "," & Chr(105) & "," & Chr(105) & "," & Chr(105) & "," & Chr(105)
& "," & Chr(105) & "," & Chr(111) & "," & Chr(111) & "," & Chr(111) & "," &
Chr(111) & "," & Chr(111) & "," & Chr(111) & "," & Chr(111) & "," & Chr(111)
& "," & Chr(111) & "," & Chr(111) & "," & Chr(117) & "," & Chr(117) & "," &
Chr(117) & "," & Chr(117) & "," & Chr(117) & "," & Chr(117) & "," & Chr(117)
& "," & Chr(117) & "," & Chr(110) & "," & Chr(110) & "," & Chr(99) & "," &
Chr(99) & "," & Chr(121) & "," & Chr(121)>

<cfset nom_fichier2 =
#replacelist(lcase(replace(getfilefrompath(form.nom_fichier),"
","_","ALL")),accentminmaj,sansaccentminmaj)#>


Pat

  _____  

From: Dave Carabetta [mailto:[EMAIL PROTECTED]
Sent: September 3, 2004 11:47
To: CF-Talk
Subject: Re: Problem with accented character in file names and CFFILE

On Fri, 3 Sep 2004 16:41:01 +0100, Andrew Dixon <[EMAIL PROTECTED]>
wrote:
> I did think about parsing the file name and replacing the characters,
> but the people the site is for will not allow the file name to be
> changed. It is a government funded project and therefore everything
> has not be exactly right!!!
>

Is this just an encoding issue though? Your OS's encoding might be
ISO-8859-1, which would mangle the special characters, whereas you
might need UTF-8 to have them come through OK. I don't really know
what the OS-level solution is, but for CF, search the archives for
setEncoding, as there's been a bunch of threads related to this.

Don't know how much help that is, but thought I'd throw it out there.

Regards,
Dave.
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to