Question: Someone help me
i have a file containing following

```
a                       // true
тодорхойгүй гишүүн\n    // false
ямар нэг                // false
нэгэн                   // false
a good deal             // true
нэлээн                  // false
a long face             // true
уруу царай              // false
...

```

My java code 

```
while ((strLine = br.readLine()) != null) { 
 // string from file

                Pattern pattern = Pattern.compile("[\\sa-zA-Z]{1,}");
                Matcher matcher = pattern.matcher(strLine);
                if (matcher.matches()) {
                    System.out.print(true+ "\n");
                } else {
                    System.out.print(false + "\n");
                    }
            }

```

Output

```
false // there is problem this line must true 
false
false
false
true
false
true
false

```

Why first time not match.

```
I inserted blank line into start of file then output

false
true   // this line was false before i insert blank line
false
false
false
true
false
true
false

```

Answer: 
It is strange. You might want to try to carefully examine the first couple lines of the file with hexdump:

```
head -2 file | hexdump -C

```

This should tell you exactly what bytes are at the beginning of the line.
first two line

```
a
тодорхойгүй гишүүн

```

hexdump

```
0000-0010:  ef bb bf 61-0d 0a d1 82-d0 be d0 b4-d0 be d1 80  ...a.... ........
0000-0020:  d1 85 d0 be-d0 b9 d0 b3-d2 af d0 b9-20 d0 b3 d0  ........ ........
0000-0029:  b8 d1 88 d2-af d2 af d0-bd                       ........ .

```