Regular expressions and characters as č, ? ť ...

Hi. I have this problem with regular expressions. The next piece of code is work only with string without diacritics. If I use as pattern character with diacritic the matcher is not find any occurence of a character. The code:

String pat ="č";// "a"

String text ="naj čalamada"

Pattern pattern = Pattern.compile(pat, Pattern.CASE_INSENSITIVE);

Matcher matcher = pattern.matcher(text);

while (matcher.find()){}

If I uncomment character 'a' its occurence will be founded but occurence of 'č' is not found. :(

Can you tell me what is wrong ?

If I use flag Pattern.CASE_INSENSITIVE | Pattern.CANON_EQ nothing will be changed.

Thanks for all replays.

[896 byte] By [komofeia] at [2007-10-2 4:57:16]
# 1
What is the encoding used for the file? Is it the same as the system default locale where the file is compiled? And do you provide the encoding as an inout parameter when you compile?
one_danea at 2007-7-16 1:01:31 > top of Java-index,Desktop,I18N...
# 2
The file encoding is same as system encoding and it is utf-8.How can I specify encoding as an inout parameter when I compile it?Piece of code or concrete funcions help me more...
komofeia at 2007-7-16 1:01:31 > top of Java-index,Desktop,I18N...
# 3
Ok all works properly now....
komofeia at 2007-7-16 1:01:31 > top of Java-index,Desktop,I18N...
# 4
Just saw your 2 updates this morning. So what was the problem?
one_danea at 2007-7-16 1:01:31 > top of Java-index,Desktop,I18N...