NFSpeedypur wrote:
> I am very confused.  I have brought in data from a database in a
> string format.  This data is something like "Hello\nThis is a Test"
> But it is not the '\n' as a carriage return and I am not sure why.  If
> I add another part to the string with like ... string + "\nHello" it
> works fine with the "\n".  So I am assuming that somehow it is
> bringing in the \n as 2 characters from the database instead of 1.

Bear in mind that "newlines" in Windows are \r\n, whereas in Linux and
OS X they are \n.

I do not know if that relates to your issue, but it's the first thing
that jumps to mind...

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training in Sweden -- http://www.sotrium.com/training.php

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to