I'm currently trying to add support to our application for Japanese and French language encodings. In doing so, I'm trying to create two Pattern matchers to detect tabs-only and spaces-only in a read file, regardless of language encoding. 

These will be used to determine what delimiter is used in a file, so they can be processed accordingly.

When I've tried compiling a space pattern 

```
Pattern.compile(" ", Pattern.UNICODE_CHARACTER_CLASS);

```

I don't see it generating a regex to handle different unicode space values.

eg something like `"[\\u00A0\\u2028\\u2029\\u3000\\u00C2\\u009A\\u0041]"`

Compilation seems to work properly with the '\s' character set, but that includes tabs and newlines.

How should I be doing this in Java?

*UPDATE*

So part of the reason this wasn't working was the fact that Japanese web text HAS NO spaces, even though there appear to be spaces. Take the following line from a web imoprt: 

実なので説明は不要だろう。その後1987

There are actually no spaces here う。そ. Just three characters.

Fixing this is really the subject of another question, so I have accepted Casimir's answer, as it handled the French case just fine.