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
[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]
[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!
[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]
>
>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.