开发者

detect the language of input?

I have an input in my form, I wanna find a solution to determine which la开发者_JAVA百科nguage is typed in..( is it English, french, arabic, or Hebrew ..)...

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


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. :)


You might want to use Google translate API for that.


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

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜