I have form fields that users enter text and when they submit the page it gets written into the database. The problem I have is this: If they insert multiple spaces, I insert a  (non breaking space HTML) to keep the formatting correct. Say for the indention of the beginning of a paragraph. There tends to be one problem though, SQL doesn't just insert this as a common space. When trying to find the spaces it does not view this as your normal space, although that is what it looks like. I need to remove that space(special character) because it is causing problems. Does anyone have any idea how or what this special character is? It really messes up XML that is generated from the SQL db as it sees it as an "invalid character". Thanks for any help.