Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

UniCode -- New Line/ Carriage Return

843859Mar 20 2006 — edited Mar 22 2006
Greetings,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 19 2006
Added on Mar 20 2006
2 comments
178 views