How to trim() No-Break space ( ) when parsing HTML

The   entity in the web pages is used to represent a blank space, but is sometimes converted to ASCII 160 (no break space), instead of ASCII 32 (space). This does not work well with Java functions like trim() which expect the ASCII 32 character (‘ ‘). This article shows you how to find and replace this character by using its unicode value and a simple regular expression.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes