tags:

views:

181

answers:

4

I have an input in my form, I wanna find a solution to determine which language is typed in..( is it English, french, arabic, or Hebrew ..)...

in PHP script, also I use UTF-8 encode.

+5  A: 

Use google translate API http://code.google.com/apis/ajaxlanguage/documentation/#Detect

On server side, try this.I haven't tried it though.

And please do read the terms before using it. :)

vsr
+2  A: 

You might want to use Google translate API for that.

Sarfraz
+2  A: 

Google have an API for language detection that you could use:

http://code.google.com/intl/da/apis/ajaxlanguage/documentation/#Detect

Mark Byers
+2  A: 

You can use a perl script for that, see: http://odur.let.rug.nl/~vannoord/TextCat/Demo/

Several competing/alternative products are also listed on that page.

stimpie