ashosheh Posted December 14, 2006 Report Share Posted December 14, 2006 hi alli have a text file that contains three lines of text, when i open the file in (notepad), the three lines are shown in one line , but when i open the file using wordpad, the three lines are displayed correctly. is there a way to change the text file encoding without having to open it in wordpad and saving the file.thanx Quote Link to comment Share on other sites More sharing options...
ɹəuəllıʍ ʇɐb Posted December 15, 2006 Report Share Posted December 15, 2006 Hello, and welcome to the Windows Forum!The behavior of your text file has nothing to do with encoding, but with the way end-of-line is handled. In Unix, an EOL consists of a linefeed (LF) character (0x0A). However on Windows EOL contains both a LF and CR (carriage return) character (0x0D).So it seems that you have a Unix text file with only LF as EOL indicators. This happens to me sometimes, and this is what I do to correct it: using FTP I send it to a Unix system in binary mode, then get it back in ASCII mode, and voilà - the lines are now terminated with LF and CR.If you do not have a Unix system to perform this operation, you can send me your text file via PM (personal message), and I can do it for you. Quote Link to comment Share on other sites More sharing options...
ashosheh Posted December 15, 2006 Author Report Share Posted December 15, 2006 Hello, and welcome to the Windows Forum!The behavior of your text file has nothing to do with encoding, but with the way end-of-line is handled. In Unix, an EOL consists of a linefeed (LF) character (0x0A). However on Windows EOL contains both a LF and CR (carriage return) character (0x0D).So it seems that you have a Unix text file with only LF as EOL indicators. This happens to me sometimes, and this is what I do to correct it: using FTP I send it to a Unix system in binary mode, then get it back in ASCII mode, and voilà - the lines are now terminated with LF and CR.If you do not have a Unix system to perform this operation, you can send me your text file via PM (personal message), and I can do it for you.HI , thanx for your reply.you are completely right, the text file has come from a unix system, the problem is i use oracle forms with webUtil library, this library downloads the file from unix application server as a binary file, tha's why i can't use ASCII mode in FTP. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.