This might be a bug, but its something to look  into when using .JSP files.

When accepting input from a textbox, i was trying to use trim() and it 
was not working.

String name=request.getParameter("name");
name=name.trim();

I found it odd, so I tried...

out.println("Char is: " + (short)name.charAt(0));

And I got the value 160.

So I was able to replace 160 with nothing using replace(), BUT it seemed
quite stupid that I had to.

I'm using FreeBSD, and the browser was IE 5.0 that submitted the form.

Derek Young


Reply via email to