Re: Frontbase CLOB newline problem
Re: Frontbase CLOB newline problem
- Subject: Re: Frontbase CLOB newline problem
- From: Chuck Hill <email@hidden>
- Date: Tue, 11 Nov 2008 21:46:56 -0800
On Nov 11, 2008, at 3:39 PM, Awbrey Hughlett wrote:
I am trying to print out a text document with data from a CLOB in
Frontbase.
Print out, as in to an HTML page?
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.
Get rid of them or show them as something else or convert them to HTML
line breaks?
So here is what I have tried and the results that follow:
String comments = aListing.additionalComments().replaceAll("\n", "\
\n");
I think I see what you are trying to do, but that does not make much
sense. "\n" is a special character. "\" "n" are two normal
characters that will not get converted back into line breaks. You
might also be seeing some logging weirdness.
So, really, where are you going with this?
Chuck
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
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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