Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

weird issue with new lines

0 views
Skip to first unread message

mladen.adamovic

unread,
Nov 21, 2009, 4:26:27 PM11/21/09
to
'm facing one weird problem with new lines if you have some spare time
perhaps you can think about it...

Doing some string manipulation with strings and when one String
displays to stdout in Netbeans it looks like :
INFO: sortedText=ad,ds,sadas,sadsdsadasdsdda,sd

but however when I print that String to web server (Glassfish v3) it
displays in HTML with random new lines as
ad,
ds,
sadas,
sadsdsadasdsdda,sd

The same behavior with Chrome and with Firefox, however if I copy and
paste that String in Gmail it doesn't contain those new lines any
longer.

I thought it might be \r issue, but I'm using linux and
line = line.replaceAll("\r", "");
didn't solve it.


This is nothing important but I'm curious why it might happen.

Thanks.

--
Mladen Adamovic
http://www.numbeo.com
http://www.online-utility.org

Филимон Лаковид

unread,
Nov 21, 2009, 5:56:01 PM11/21/09
to
[CENTER][SIZE="6"][COLOR="Red"][B]FIORICET DRUG INFORMATION ONLINE at
[URL="http://CheapFioricetOnline.5x.pl"]www.CheapFIORICETOnline.5x.pl
[/URL]

[SIZE="3"][B] * Important information about Fioricet
* Before taking Fioricet
* How should I take Fioricet?
* What happens if I overdose?
* What should I avoid while taking Fioricet?
* Fioricet side effects
* What other drugs will affect Fioricet?
* Compare Fioricet with other medications!
* Free Online Consultation and Live Chat Help[/B][/SIZE]

Get More Information at Our Online Catalog
[URL="http://CheapFioricetOnline.5x.pl"]CLICK HERE TO VIEW[/URL]!

[/B][/COLOR][/SIZE][/CENTER]

Филимон Лаковид

unread,
Nov 21, 2009, 6:31:08 PM11/21/09
to
[CENTER][SIZE="6"][COLOR="Red"][B]BUY CHEAP VIAGRA ONLINE at

[SIZE="3"][B] * Important information about Viagra
* Before taking Viagra
* How should I take Viagra?


* What happens if I overdose?

* What should I avoid while taking Viagra?
* Viagra side effects
* What other drugs will affect Viagra?
* Compare Viagra with other medications!

Филимон Лаковид

unread,
Nov 21, 2009, 6:46:10 PM11/21/09
to
[CENTER][SIZE="6"][COLOR="Red"][B]BUY CHEAP VIAGRA ONLINE at
[URL="http://Buy-Cheap-Viagra-Online.oq.pl"] www.Buy-Cheap-Viagra-Online.oq.pl
[/URL]

[SIZE="3"][B] * Important information about Viagra
* Before taking Viagra
* How should I take Viagra?
* What happens if I overdose?
* What should I avoid while taking Viagra?
* Viagra side effects
* What other drugs will affect Viagra?
* Compare Viagra with other medications!
* Free Online Consultation and Live Chat Help[/B][/SIZE]

Get More Information at Our Online Catalog

[URL="http://Buy-Cheap-Viagra-Online.oq.pl"]CLICK HERE TO VIEW[/URL]!

[/B][/COLOR][/SIZE][/CENTER]

Roedy Green

unread,
Nov 22, 2009, 5:45:45 PM11/22/09
to
On Sat, 21 Nov 2009 13:26:27 -0800 (PST), "mladen.adamovic"
<mladen....@gmail.com> wrote, quoted or indirectly quoted someone
who said :

>
>Doing some string manipulation with strings and when one String
>displays to stdout in Netbeans it looks like :
>INFO: sortedText=ad,ds,sadas,sadsdsadasdsdda,sd

First you must nail down precisely what hex chars are in your strings
at both ends. You might have \r \n \t etc.

See http://mindprod.com/jgloss/hex.html for some tools to dump out
your Strings in hex.
--
Roedy Green Canadian Mind Products
http://mindprod.com
Finding a bug is a sign you were asleep a the switch when coding. Stop debugging, and go back over your code line by line.

0 new messages