[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
How to store Newline character ?
HI
How do I store a newline character (\n) along with other ascii
characters in an attribute ?
Lets say I have an
attribute Description
an the value
---------------start of value--------
Used by: File server
CPU: 424M1739 UK B048407
Keyboard: 0039147-9413263775
Monitor: 0014698-9426FR1639
Disks: Andataco PO# D409745 ST3155N 2G HB086256 10/28/2001 /u/al-d3
Andataco PO# U-002844-96 ST3155N 2G HB048729 10/24/2001 /u/al-d(89)
Andataco PO# U-002844-96 ST3155N 2G HB024632 10/24/2001 /u/al-d(89)
Andataco PO# U-002844-96 ST3155N 2G HB048941 10/24/2001 /u/al-d2
Replacement:Inmartech XP32150 2G PE62143031 /u/al-d7
Replacement: 2G u/al-d10
--------------End of value--------
Now I want to retain the above format.
So I stored it in following format (LDIF)
-------
Description:
CPU: 424M1739 UK B048407
Keyboard: 0039147-9413263775
Monitor: 0014698-9426FR1639
Disks: Andataco PO# D409745 ST3155N 2G HB086256 10/28/2001 /u/al-d3
Andataco PO# U-002844-96 ST3155N 2G HB048729 10/24/2001 /u/al-d(89)
Andataco PO# U-002844-96 ST3155N 2G HB024632 10/24/2001 /u/al-d(89)
Andataco PO# U-002844-96 ST3155N 2G HB048941 10/24/2001 /u/al-d2
Replacement:Inmartech XP32150 2G PE62143031 /u/al-d7
Replacement: 2G /u/al-d10
-----
But while retrieving the value, I am loosing the format (looses \n).
I am aware that in LDIF, continuation of a line is denoted by \n followed
by a space. Is it true ?
If it is true, then how am I supposed to preserve the format.
Thanks in advance for the help
Himanshu