Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
362 views
in Technique[技术] by (71.8m points)

coldfusion file content no longer readable when we open the file in an editor

My ColdFusion 11 app is working fine on my local machine (Windows 10). But when I open any .cfm file in Eclipse or even in a Notepad, I get the content - such as the following - that is not readable. It was not happening before. How can I make the files readable again?

enter image description here

UPDATE:

The website is using IIS 10 on windows 10. Could the above issue have something to do with IIS? I've noticed that when I open a copy of the same .cfm file from my backup folder I can read the file and the above issue does not exist.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You are looking at an encrypted file. Most CFML files within the CFIDE folder are encrypted to protect the code from prying eyes. This has nothing to do with IIS.

A short description about this topic you can find here.

Unless there is any batch encryption in place for your own files, then you should be able to open up your own code and you will see the readable content. If you accidentally encoded your own files, then you will have to restore your backup or get the original files from source control. In the past Google search brought up a (technically illegal) tool for unencrypting such files. I've no idea whether this still works with newer ColdFusion editions.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...