I am reading a string from an xml file stored on the sdcard that has some carriage returns stored with the "\n" escape sequence. Such as
<string mystring="Line1\nLine2">
But when I display the text in the emulator, the \n is showing up instead of making a newline. I am not doing anything unusual with the text--just reading it with a SAXParser and then adding it to a textview. Is there a setting I need to check to make sure newlines are rendered correctly? Do I need to store the carriage returns differently in the xml file?
I have also tried \r\n and that doesn't work either. When I debug, I can see that an extra \ is placed in front of the existing \ I see that in my SAX startElement method, the line
String s = atts.getValue("mystring");
assigns "Line1\nLine2" to s, so the problem is with the SAXParser.