You are here: PSPad forum > English discussion forum > Line endings not maintaining
Posted by: trainee.GED5 | Date: 2018-07-26 06:22 | IP: IP Logged
I have 15000 lines of arabic text written in unicode text file where I have proper line endings.
However, when I open this in PSPad the line endings are drastically changed.
Since I need to perform line manipulations, I only can work with PSPad. Help!
1) imgur.com
-
Sid
Edited 1 time(s). Last edit at 2018-07-26 06:24 by trainee.GED5.
Posted by: pspad | Date: 2018-07-26 06:46 | IP: IP Logged
Can I get file sample? Without this information I can't tell you what's wrong.
PSpad works with 3 types of line ends:
Windows: CrLf
Unix: Lf
Mac: Cr
Your file must contain something different.
Posted by: trainee.GED5 | Date: 2018-07-26 08:03 | IP: IP Logged
Posted by: pspad | Date: 2018-07-26 08:26 | IP: IP Logged
File not found.
Can you send me it as attachment into support mail?
Posted by: trainee.GED5 | Date: 2018-07-26 08:30 | IP: IP Logged
please try this:
Posted by: pspad | Date: 2018-07-26 08:34 | IP: IP Logged
Got it.
In your file on the end of second line:
0A " 0D 0A
Your file contains 2 different line ends
Posted by: trainee.GED5 | Date: 2018-07-26 08:36 | IP: IP Logged
please suggest how to change it and it is not 0D.. it is some arabic text.
Posted by: pspad | Date: 2018-07-26 11:04 | IP: IP Logged
No, it isn't Arabic text, it's Line end.
LF = 0A 00 (line feed)
CR = 0D 00 (cariage return)
" = 22 00
Your second line ends with 0A 00 22 00 0A 00 0D 00
LF standalone is used e,g, in MS Word as soft line break, Cr Lf as hard line break
Remove first 0A 00 before " on the line ends.
When you open it in Notepad, you will see same result as in PSPad
Posted by: trainee.GED5 | Date: 2018-07-26 11:09 | IP: IP Logged
Pardon for my stupidity, but I can't find the text you are referring to. I opened the text in PSPad and it is only numbers and arabic text in enquotes.
Posted by: pspad | Date: 2018-07-26 11:11 | IP: IP Logged
Hello. I opened your file in PSPad hex editor to see real content
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR