on 12-23-2015 1:33 PM
Hello All,
I am converting an Idoc into txt File using message transformation beam in receiver SFTP adapter
Sample XML Structure is given below,
<Record>
<Name1>
<Name2>
......
<Name10>
<Record>
The resulted TXT file when opened in notepad++ or wordpad is having linebreak/Newline.
But when it is opened in windows notepad the line break/Newline is not happening either after header line or after line item segments,
Module Configuration used is given below,
what is the solution and why it is not opening correctly in notepad, any suggestions...??
Hi All,
Issue is resolved by using hex value for newline in endseparator module configuration
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinoth
This is not the problem with your code. This is notepad issue, generally notepad doesn't shows the line breaks. If your file is properly displayed in notepad++ or textpad then it is fine. Notepad is a basic tool which does not support formatting feature.
You can find many blogs on this topic.
Fix line breaks in Notepad - Microsoft (Windows) Support - Neowin Forums
Notepad doesn&#39;t show line breaks - Super User
https://stackoverflow.com/questions/8755029/windows-notepad-not-supporting-newline-character-n
Regards
Osman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try removing the word wrap option if enabled in notepad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinoth,
AFAIK i think from PI you can't handle this , as this is a behavior of notepad because notepad only recognizes CR, LF (0x0d, 0x0a), whereas other sources might use CR only, or LF only.
If you still want to see the output in notepad then copy the content into word and then again copy it back to the notepad.
or try end-separator as '0x0D' or '0x0A'.
Br,
Manoj
Did you tried importing into Excel and see if the file is formatted correctly? If it is then I shouldn't be worried with the Notepad output you see.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.