I have an SQLite database where some of the values contain strings with the newline '\n' character. I was hoping that when that value was pulled from the database, put into a String and a TextView‘s setText() was set to the String value, the newlines would work, but unfortunately it does not. Any other options other than having to parse the string and break it up manually?
I have an SQLite database where some of the values contain strings with the
Share
If you debug, you will see that the string is actually “\ \r\ \n” or “\ \n”, ie, it is escaped. So if you massage that string, to get rid of the extra \, you will have your solution. This is true especially if you are reading from a database.