Skip to content

Instantly share code, notes, and snippets.

@atuttle
Created April 18, 2016 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atuttle/f200c47455b503c6774251c1b7fe2c61 to your computer and use it in GitHub Desktop.
Save atuttle/f200c47455b503c6774251c1b7fe2c61 to your computer and use it in GitHub Desktop.
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
Copy link
Author

atuttle 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