I recently started looking at coldbox. I'm going through all the
sample applications in genesis.
I don't understand why the General.cfc handler (located in the
"handler" folder) code is kinda messed up or funky.
for example:
^M<cfcomponent name="General" extends="coldbox.system.Coldbox"
output="false">^M^M
Basically, after every CF tag or CF comment there is this "^M" one
time or two times in a row. Plus its not formatted nicely with
tabspace and new lines, it all runs together.
If I open Datastore.cfc in the model folder, the code looks beautiful.
What gives?
andrews
February 18, 2011, 8:56am
2
What are you using to edit the files?
Also Luis, can you confirm if the ColdBox is UTF-8 or standard ASCII
encoded?
Regards,
Andrew Scott
http://www.andyscott.id.au/
From: coldbox@googlegroups.com [mailto:coldbox@googlegroups.com ] On
Behalf Of webmandman
Sent: Friday, 18 February 2011 6:35 PM
To: ColdBox Platform
Subject: [coldbox:8176] corrupt files or some special format
I recently started looking at coldbox. I'm going through all the sample
applications in genesis.
I don't understand why the General.cfc handler (located in the "handler"
folder) code is kinda messed up or funky.
for example:
^M<cfcomponent name="General" extends="coldbox.system.Coldbox"
output="false">^M^M
Basically, after every CF tag or CF comment there is this "^M" one time or
two times in a row. Plus its not formatted nicely with tabspace and new
lines,
lmajano
February 18, 2011, 5:03pm
3
I would like to say UTF8 but I cannot confirm. Maybe somebody can help
out an make sure all files are UTF8 any easy ways
andrews
February 18, 2011, 6:00pm
4
There are tools out there that will enable batches to be done, we did this a
year or so ago.
Just google'ed for an application that did it for us.
Regards,
Andrew Scott
http://www.andyscott.id.au/
lmajano
February 18, 2011, 6:20pm
5
Can you refer us to that tool so we can run it in the samples and core?
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com
Unifier.
http://www.melody-soft.com/html/unifier.html
It can scan all the .cf , .htm files and replace them with Unicode (utf-8) versions.
Even you can add BOM on utf-8 files.
Just be careful and do not put BOM for any XML file.
Sincerely,
Oğuz Demirkapı
I'm using VIM set to encode UTF-8 on my windows laptop.
I just went back to cfeclipse and ofcourse its ok there.
I'll post back when i find an answer to VIM and these CFC files.