ss123
Status: Curious
Joined: 31 Mar 2005
Posts: 7
Back to top
Posted: Jul 14, 05, 5:39    Non printable characters in html
How do I encode non-printable characters:

I get the "“Equip. \nPort:”"string from the server and all I have to do when i render my page, I need to display the above string in two lines as a label of a text box.



System.out.println(a.indexOf(\n””)) returns -1 and hence a.replaceAll(“\n”,”<br/>”) is not happening.

I guess the reason is it is a non-printable character.
How do i make this happen.
Thanks
jeffd
Status: Assistant
Joined: 04 Oct 2003
Posts: 585
Back to top
Posted: Jul 14, 05, 9:20    
What language is that? If it's ASP the forum doesn't support ASP questions. ASP also uses really retarded newline characters, or it did last time I dealt with it, but happily that's been a while now.
ss123
Status: Curious
Joined: 31 Mar 2005
Posts: 7
Back to top
Posted: Jul 14, 05, 10:48    
Its JSP.
jeffd
Status: Assistant
Joined: 04 Oct 2003
Posts: 585
Back to top
Posted: Jul 14, 05, 10:50    
Wow, a JSP user, I guess there has to be a first time for everything. Sorry can't help, we don't use proprietary languages, only open source here.
Display posts from previous:   

All times are GMT - 8 Hours