Skip to content

Instantly share code, notes, and snippets.

@atuttle atuttle/EOL.cfm
Created Apr 18, 2016

Embed
What would you like to do?
Determining what char codes ACF uses on different operating systems
<cfscript>
fn = "ram://eol.txt";
f = fileOpen( fn, "append", "utf-8" );
fileWriteLine( f, '1' );
fileWriteLine( f, '2' );
fileClose( f );
r = fileRead( fn );
chars = listToArray( r, '' );
chars.each(function(char){
writeDump(asc(char));
});
fileDelete( fn );
</cfscript>
@atuttle

This comment has been minimized.

Copy link
Owner Author

commented Apr 18, 2016

ACF11 on OSX: 49 10 50 10
ACF11 on Windows: 49 13 10 50 13 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.