title: \r\n encoding issue when reading from DB & Java
body: <p>I have a Java program that stores a message like "test1\r\ntest2" into DB - when I print this out it gives me new line.
  The other thread is reading strings from DB and sending them to output with "\r\n"  and when I try to print this out it doesn't give me newline - it just prints out  "test1\r\ntest2"
  Should I change the encoding of the output? </p>
  
  <p>The application is deployed on tomcat with UTF-8 encoding set.</p>
  
  <p>Thanks in advance.</p>