Save and retrieve newline (carriage return) characters from firebase

845 views
Skip to first unread message

Dominik Kroutvar

unread,
Mar 27, 2015, 7:12:44 AM3/27/15
to fireba...@googlegroups.com
When I try to store a string with newlines in firebase all newline \n are replaced by a single space. How do I preserve a newline characters? Do I have to encode newline characters somehow to suppress replacement?

Thanks 

Kato Richardson

unread,
Mar 27, 2015, 2:42:34 PM3/27/15
to fireba...@googlegroups.com
Hi Dominik,

I didn't have any trouble. As always with a nuanced error like this, a repro is going to be important, and version info may play a key role in determining the cause. 

Cheers,
Kato


On Fri, Mar 27, 2015 at 4:12 AM, Dominik Kroutvar <domin...@googlemail.com> wrote:
When I try to store a string with newlines in firebase all newline \n are replaced by a single space. How do I preserve a newline characters? Do I have to encode newline characters somehow to suppress replacement?

Thanks 

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/3095d4d7-6a34-4d53-8205-6a78545b0323%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages