UniCode -- New Line/ Carriage Return
843859Mar 20 2006 — edited Mar 22 2006Greetings,
i have a java code which retrieves data from db and does a process.
i am using a \n character in the string returned from the db and passing it to a variable and printing the same.
The problem is that the \n character gets printed as it is.ie., if the string passed is ".....dinesh \n samson ......", it gets printed
as ".....dinesh \n samson ......"
but if the same string is hardcoded to a local variable and then printed it works perfectly.. ie., "....dinesh" in a line and
"samson ....." in another.
can anyone help me... or give a work around...
thanks in advance.
-- dinesh samson j