0

Possible Duplicate:
Language recognition in Java

I need to check the language of data present in the string. Pls some one help on this.

for Ex:

String str ="Sample";

str string consist of english language data.

String str1 = "عينة";

str string consist of arabic language data.

Community
  • 1
  • 1
Ibrahim
  • 1
  • 1
  • 5
  • You may be able to make some determination about what character set is being used, but determining the language will not be possible. For instance, many words (maybe not sample) are the same in English, French, Spanish, etc... – jahroy May 11 '12 at 05:07

1 Answers1

0

There are external libraries available.

Here is one of them