Copy link to clipboard
Copied
Hello
We have a lot of pages encoded with iso-8859-1. CFBuilder Beta 1-3 was able to show the correct encoding (specified in project properties > resources > text file ecoding). Although we changed the settings in project properties and in preferences (general > workspace > text file encoding > other > iso-8859-1), cfbuilder opens every single page with utf-8. it's possible to change it for every page under page properties (or edit > set encoding), but this is a really big efford... it's also a little bit strange, because the set-encoding-menu shows "Determined from content: UTF-8" by default, although there are a lot of iso-8859-1 encoded characters inside (ä/ö/ü in our comments).
Any idea?
Thanx,
Patrick
To make CFML editor handel content of given CFML file for a given encoding, follow these steps -
1) Navigate to preferences->General->Content types page
2) On this page expand Text node and select CFML source file.
3) Once selected, default encoding text field will show "UTF-8" as default encoding for CFML content.
4) Change this to any desired encoding type and click update button next to this field.
5) Click OK.
6) Reopen file in editor.
Now content of any CFML source file (.cfm, .cfc, .cfml) will b
...Copy link to clipboard
Copied
"although there are a lot of iso-8859-1 encoded characters inside (ä/ö/ü in our
comments)"
what makes you think those are iso-8859-1/latin-1 only chars?
Copy link to clipboard
Copied
> "what makes you think those are iso-8859-1/latin-1 only chars?"
that's not what I claimed, of course these charactes exists also in utf-8, but not in the same position...
Copy link to clipboard
Copied
"that's not what I claimed, of course these charactes exists also in utf-8, but
not in the same position"
try again.
do you want the full blown unicode lecture (it's already in these forums in
several places over the years) or will you just look this up yourself?
if you open the cf files up in notepad or whatever, what do you see?
Copy link to clipboard
Copied
To make CFML editor handel content of given CFML file for a given encoding, follow these steps -
1) Navigate to preferences->General->Content types page
2) On this page expand Text node and select CFML source file.
3) Once selected, default encoding text field will show "UTF-8" as default encoding for CFML content.
4) Change this to any desired encoding type and click update button next to this field.
5) Click OK.
6) Reopen file in editor.
Now content of any CFML source file (.cfm, .cfc, .cfml) will be handled as encoded in specified encoding.
thanks,
Sandeep Paliwal
Adobe ColdFusion dev team
Blog - http://sandeepp.org/blog/
Copy link to clipboard
Copied
Sorry, Sandeep Paliwa, i was wrong:
That was not exactly the same setting as I thought (I was reading it too fast, I'm really sorry): your are absolutely right!! This setting is the default for all pages without exceptions.
Thank you very much for your help!
patrick
Copy link to clipboard
Copied
Hi there!
I am having the same issue but I don't see cfml or cfm content type for Coldfusion 2016. What am I missing?
Copy link to clipboard
Copied
Thanks for all your help...
Sandeep Paliwa: thats exactly the solution I mentioned in the original post - but it's a big efford to do this for every single file...
PaulH: It's not about the difference between iso and utf-8.....!
Fact is:
CFBuilder beta got the text file encoding for all pages from the project settings
CFBuilder 1.0 does not...
thanks,
patrick
Copy link to clipboard
Copied
Hi Im trying to change my content type encoding but everything appears to be locked so i cant make the change.
Any idea how i unlock the content types?
Cheers
Ben
Copy link to clipboard
Copied
OK just Typing in the box seems to work (my bad)
However I need to set the type as ANSI (which isnt supported apparently) any clues