May 5, 2011 at 2:10 pm
Hi folks.... needed your suggestions.....
I had created a text file named "forward.txt" in windows operating system. How can i know whether my text file "forward.txt" is a
ASCII-CRLF
ASCII-LF
EBCDIC.
I want to know my text file format. Is it in ASCII-CRLF format or in ASCII-LF format or in EBCDIC format??
Thanks!!
May 6, 2011 at 1:18 am
There are some suggestions in Wikipedia on identifying the EOL character
http://en.wikipedia.org/wiki/Newline
hope this gives you a starting place.
Ian
September 4, 2011 at 9:23 am
If you created it, you presumably know how you created it. If you created it on Wndows with Notepad, for example, it will use ASCII-CRLF (ANSI) unless you told the system to use a unicode format for it. If you created it with something that gives you full control over the output, it will be whatever format you generated. And so on.
Tom
September 4, 2011 at 5:08 pm
tinnusqlserver (5/5/2011)
Hi folks.... needed your suggestions.....I had created a text file named "forward.txt" in windows operating system. How can i know whether my text file "forward.txt" is a
ASCII-CRLF
ASCII-LF
EBCDIC.
I want to know my text file format. Is it in ASCII-CRLF format or in ASCII-LF format or in EBCDIC format??
Thanks!!
There's really only one way to know for sure... open it up with a hex editor and look.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 6, 2011 at 8:41 am
Jeff Moden (9/4/2011)
There's really only one way to know for sure... open it up with a hex editor and look.
Agreed. See also the Unicode Byte Order Mark FAQ for more details on Unicode and the characters which _may_ exist at the beginning indicating big-endian vs little-endian, but be aware that Microsoft uses UCS-2 instead of a modern (July 1996 or later) Unicode variant.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply