Created
April 18, 2016 20:16
-
-
Save atuttle/f200c47455b503c6774251c1b7fe2c61 to your computer and use it in GitHub Desktop.
Determining what char codes ACF uses on different operating systems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ACF11 on OSX:
49 10 50 10
ACF11 on Windows:
49 13 10 50 13 10