• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

fetching english description from the list of multi language descriptions

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Put the moon back where you found it! We need it for tides and poetry and stuff. Like this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic