ColdFusion、CFDirectory 和法语
我们有一个 ColdFusion 文件库管理系统,该系统正在从旧的 ColdFusion 4 服务器上拆除并转移到基于 ColdFusion 8 的新系统上。
我们所有的文件和文件夹都是英语、法语和西班牙语。
在 CF8 中使用 CFDirectory 加载和显示这些文件和文件夹会导致法语和西班牙语文件和文件夹出现两个问题,但这两个问题可能是相互关联的。
- 带有重音字符的目录不会从 cfdirectory 返回。
- 带有重音字符的文件显示为颠倒的 ?而不是重音字符。
服务器是带有 SunONE 6.1 Web 服务器的 Solaris 10
更新
我们现在已将问题范围缩小到 JVM。文件系统看起来不错,但如果我们包含一个使用基本 Java 文件 IO 的 Java 类,我们会在文件和目录中遇到同样的问题。
任何有关如何在 JVM 中纠正此问题的建议将不胜感激
We have a ColdFusion file library management system that is being taken off an old ColdFusion 4 server and moved onto the new system which is based on ColdFusion 8.
All our files and folders are in English, French and Spanish.
Using CFDirectory in CF8 to load and display these files and folders is causing two issues with the French and Spanish files and folders, but the two problems are probably linked.
- Directories with accented characters are not being returned from the cfdirectory.
- Files with accented characters are displaying with an upside down ? instead of the accented character.
The servers are Solaris 10 with SunONE 6.1 Webservers
Update
We have now narrowed the problem down to the JVM. The file system looks OK, but we get the same problem with the files and directories if we include a Java class which uses the basic Java file IO.
Any suggestions on how to rectify this in JVM would be appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我没有找到与您的问题相关的任何内容,但我确实在 版本 6 的发行说明:
没有迹象表明该问题是否已修复。我不确定,但我认为“双字节”文件名是指使用 unicode,我相信您需要使用它来获取文件名中的重音字符......所以它可能在某种程度上与您的问题有关。
如果您不能简单地重命名文件以删除重音字符,我建议您在官方 中提交错误ColdFusion 错误数据库。
I haven't found anything specific to your issue, but I did see this note in the Release notes for version 6:
No indication of whether or not that's been fixed. I'm not certain, but I assume that "double-byte" file names refers to using unicode, which I believe you need to use to get accented characters in file names... so it may be related in some way to your problem.
If you can't simply rename the files to remove the accented characters, I would recommend filing a bug in the official ColdFusion bug database.
我相信这是你的操作系统问题。
我在 Ubuntu 上使用带有乌克兰语言环境的 CF8 开发版本,并且可以执行以下操作。
用双字节字符列出目录:
文件 файл_з_іїк.cfm 包含以下代码:
结果如下:
没有遗漏,包含工作完美。
PS 希望您的浏览器能够正确呈现 Unicode 字符。
I believe this is your OS issue.
I am using CF8 dev edition on Ubuntu with Ukrainian locale, and can do the following things.
List directories with double-byte characters:
File файл_з_іїґ.cfm contains following code:
And the result is following:
Nothing missed, include works perfectly.
P.S. Hope your brower will correctly render the Unicode chars.
问题可能是 CF 4 创建的目录中的字符不是 unicode...事实上,如果 CF4 创建了它们,那么我几乎可以保证它们不是,因为 6 之前的 CF 不知道 unicode 或 utf- 8.从地上的一个洞里。它通常最终会使用一些奇怪的编码。另一方面,CF6+ 假设几乎所有内容都是 utf-8。
The problem may be that the chars in the dirs created by CF 4 are not unicode...in fact, if CF4 created them then I can pretty much guarantee that they are not because CF previous to 6 didn't know unicode or utf-8 from a hole in the ground. It often ended up using some wierd encodings. CF6+ on the other hand assumes that just about everything is utf-8.