CFFile write ' charset UTF-8
I'm attempting to write a string to an XML file using CFFile.
The XML file must have apostrophes expressed as "'" once complete.
I'm using <cffile action="write" file="#VDJ8databasepath#databaseNew.xml" output="#XmlString#" addnewline="no" charset="utf-8"> to write the string to a file.
I can change the string to represent apostrophes as " ' " or "'" but when I write it to file, apostrophes are written as either " ' " or "'". As you can see, when the string contains apostrophes represented as "'" CFFile encodes the "&" character as "&" but when the string contains apostrophes represented as " ' " it does not encode them at all and simply leaves them as " ' ".
Any ideas how to get my apostrophes written by CFFile as "'"?
