Re: Frontbase CLOB newline problem
Re: Frontbase CLOB newline problem
- Subject: Re: Frontbase CLOB newline problem
- From: "Mitchell Smith" <email@hidden>
- Date: Wed, 12 Nov 2008 15:14:14 +1000
This is entirely untested but maybe:
String comments = aListing.additionalComments().replaceAll("\\n", "\\\n");
Please let me know how it goes.
----- Original Message -----
From: "Awbrey Hughlett" <email@hidden>
To: "WebObjects-Dev Apple" <email@hidden>
Sent: Wednesday, November 12, 2008 9:39 AM
Subject: Frontbase CLOB newline problem
I am trying to print out a text document with data from a CLOB in
Frontbase. In my code, I get the data and set it to a string value.
What I want to do is get rid of all line breaks and carriage returns.
So here is what I have tried and the results that follow:
String comments = aListing.additionalComments().replaceAll("\n", "\\n");
result:
Testing the new line
n
ncarriage return replace method
n
nfor the text download.
next:
String comments = aListing.additionalComments().replaceAll("\r", "\\n");
result:
Testing the new linen
n
carriage return replace methodn
n
for the text download.
from this I decided it might have both carriage returns and line
breaks so ...
String comments = aListing.additionalComments().replaceAll("\n", "\\n");
comments = aListing.additionalComments().replaceAll("\r", "\\n");
result:
Testing the new linen
n
carriage return replace methodn
n
for the text download.
I want the result to be:
Testing the new line\ncarriage return replace method\nfor the text
download
Can anybody give me a hint please?
Thanks,
Awbrey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden