Notes not recognizing newline char \n coded in java

I passed the string “123\n123\n123\n” to a text field in one of my form. Notes, instead of displaying it in three lines it is showing as “123123123”.

Can someone plz help me to solve this issue.

Subject: Notes not recognizing newline char \n coded in java

How are you passing the string?..Through a Lotus Notes Agent? If so, why not trying to use the appendToTextList method. See Lotus Domino Designer Help for more information.

Subject: RE: Notes not recognizing newline char \n coded in java

thru agent only but the field is not a textlist its just an ordinary single value text field.