Eclipse Character Encoding issue

I've recently been having the problem that every ColdFusion file that I attempted to open in CFEclipse was displaying character corruption of special characters (e.g. apostrophes, hyphens etc.)  - each corrupted character was being displayed as a black diamond with a question mark in it.

When I checked the character encoding for the file, it was showing as Default (determined from content: UTF-8)

This was not correct - the correct encoding of the files should have been ISO-8859-1.

I checked a number of places, and could not detect where the setting was being applied.  I even tried overriding the Default encoding for the ColdFusion Source File content type - which made no difference at all.

Eventually, the problem turned out to have been caused by me adding the *.cfm extension to the XML Content type (so that I could open any CFM file within the XML editor if required) - which has a default encoding of UTF-8.  This was overriding the setting which had been applied to the ColdFusion Source File content type.

After removing the *.cfm extension from the XML Content type, my ColdFusion files could be opened as saved correctly without any character corruption.

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
BlogCFC was created by Raymond Camden. This blog is running version 5.5.1, hosted by TalkWebSolutions.