Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

fetching english description from the list of multi language descriptions

 
Vish hari
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friens,

I am getting a resultset which has a list descriptions. some descriptions will be in spanish and some descriptions will be in english.
I need to check for english description in the list and when I get first english description that description should be fetched.

Please revert back how I can check the desc whether it is in english or not.


Thanks,
Vishnuvardhan
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there not a field in the table that indicates which language the text is ? If not, then I don't think there is any guaranteed way of distinguishing them.

You could look for certain characters that are not used (or at least are pretty rare) in English (�, accented vowels). Double consonants (other than ll and rr) are rare in Spanish as is the letter W.
 
Vish hari
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

As you said there is nothing to do with table. After getting the resultset object I need to check for english description. Is there any spell checker is available in java which i can use for english spell check.

Thanks,
Vishnuvardhan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic