Non printable characters in html
ss123
Status: Curious
Joined: 31 Mar 2005
Posts: 7
Reply Quote
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
Back to top
jeffd
Status: Assistant
Joined: 04 Oct 2003
Posts: 594
Reply Quote
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.
Back to top
ss123
Status: Curious
Joined: 31 Mar 2005
Posts: 7
Reply Quote
Its JSP.
Back to top
jeffd
Status: Assistant
Joined: 04 Oct 2003
Posts: 594
Reply Quote
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.
Back to top
Display posts from previous:   

All times are GMT - 8 Hours