From: mladen.adamovic on 21 Nov 2009 16:26 '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
From: Филимон Лаковид on 21 Nov 2009 17:56 [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]
From: Roedy Green on 22 Nov 2009 17:45 On Sat, 21 Nov 2009 13:26:27 -0800 (PST), "mladen.adamovic" <mladen.adamovic(a)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.
|
Pages: 1 Prev: Hash table performance Next: PROPECIA DRUG INFORMATION ONLINE 2 |