It turns out that isWhitespace(..) is a legacy method and does not consider nbsp as a whitespace character
(which it most certainly is according to unicode standard).
In Java 1.5 a new method was defined in the character class isSpaceChar(..)
that properly recognizes all unicode space characters.
And isWhitespace was left as is for backward compatibility.

See for example:
http://stackoverflow.com/questions/1060570/why-is-non-breaking-space-not-a-whitespace-character-in-java

- rami

On 25.6.2011 18:54, Thomas Mueller wrote:
Hi,

What is the exact Unicode character code? The parser uses:

if (c<= ' ' || Character.isWhitespace(c)) {
   // whitespace
}

Character.isWhitespace is supposed to return true for a non-breaking space.

Regards,
Thomas


--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to