How to test unescaped &nbsps; as a whitespace

Posted by gleery on Stack Overflow See other posts from Stack Overflow or by gleery
Published on 2010-04-23T08:11:12Z Indexed on 2010/04/23 8:13 UTC
Read the original article Hit count: 216

Filed under:
|
|
I use apache common lang to unescape a block of html text which contains  , 

I want to filter out blocks that contains only whitespaces. But I can't test the   as a whitespace. It's not in the normal whitespace list(http://en.wikipedia.org/wiki/Whitespace_character), and I try to print its Hex form by calling Character.getNumericValue which return -1. &nbsp should be a whitespace,isn't? But How can I test it?

© Stack Overflow or respective owner

Related posts about whitespace

Related posts about java