ColdFusion, CFDirectory and French

We have a ColdFusion file library management system, which was removed from the old ColdFusion 4 server and moved to a new system based on ColdFusion 8.

All our files and folders are in English, French and Spanish.

Using CFDirectory in CF8 to download and display these files and folders causes two problems with French and Spanish files and folders, but these two problems are probably related.

  • Directories with accented characters are not returned from cfdirectory.
  • Files with accented characters are displayed upside down? instead of an accented character.

Solaris 10 Servers with SunONE 6.1 Web Servers

Update

We have now narrowed the issue down to the JVM. The file system looks fine, but we face the same problem with files and directories if we include a Java class that uses the Java IO base file.

Any suggestions on how to fix this in the JVM would be appreciated

+3
source share
3 answers

I did not find anything specific in your problem, but I saw this note in the Release Notes for version 6 :

You cannot use a cfincludefile with a double-byte file name to include.

, . , , "" , , , ... - .

, ColdFusion.

+1

, .

CF8 dev Ubuntu .

:

<cfset path = "/home/trovich/docs//" />
<cfdirectory action="list" directory="#path#" name="qGetDirectory" />
<cfinclude template="__іїґ.cfm">

__іїґ.cfm :

<cfoutput>
<cfloop query="qGetDirectory">
#qGetDirectory.name#<br>
</cfloop>
</cfoutput>

:


Ї
RING0
root#ua
PHP!nside
Phrack Magazine
phparchitect
іі 
Bricolage

, .

P.S. , Brower Unicode.

0

The problem may be that the characters in the files created by CF 4 are not unicode ... in fact, if CF4 created them, I can pretty much guarantee that they are not because CF before 6 did not know unicode or utf-8 from a hole in the ground. This often ended up using some wierd encodings. CF6 +, on the other hand, assumes that almost everything is utf-8.

0
source

Source: https://habr.com/ru/post/1722589/


All Articles