How to parse new line for text entered into Information field?
Hi guys, I'm trying to create a new service call via the web api, and in doing so I need to enter text into the information field that I received from a posted html form. How do I parse new lines in the text? as it comes through as one big concatenated string?!?..
This is a test of a new line 1 2 3
comes thru as : This is a testof a new line123
I've tried adding /r/n, /n, to the strings but to no avail.
Re: How to parse new line for text entered into Information field?
I'm building the string with vbNewlines in vb.net and then passing this string through to the web service. I will need to have it display properly in the "information" field within service desk. It then gets used in an external data update trigger which calls a .net page and passes the relevant fields to that which then sends an email containing these fields.
so basically it goes from vb.net --> Java --> back to vb.net
but yeah I've tried everything.. vbnewline, chr(10), chr(13), etc they all don't show up correctly within the information field. I was then thinking to try and search for these characters and replace them with /n's when i do the creation of the service call.. but being limited by java 1.3.0 i couldn't find a solution (ie no replaceall())..