I am facing some weird issue.I am fetching a email template from database "Hi \n How are you? \n story continues". I am assigning this to string in my java application and sending email. The final output should be
Hi
How are you?
story continues
But my result is like this
Hi \n How are you? \n story continue
Instead of getting from db, if I hard code in the string I am getting in right way.
What might be causing \n to be ineffective?
Is there a way can I make \n effective in java layer?