Welcome to WebmasterWorld Guest from 54.242.72.36

Forum Moderators: ocean10000

Message Too Old, No Replies

Detect the language of a String

     

Eric

5:04 pm on Oct 14, 2007 (gmt 0)

5+ Year Member



Hi there

I need some idea for detect the language of a String, by ASP, .net or PHP or others

Basicly, I need a function, input a UTF8 string, like:

"this is a english ..lalalala"
"한국한국한국한국한국" korean
"বাংলাদেশ বাংলাদেশবাংলাদেশ " ( I don't know what's this language, I copy from google)
etc...

then through the function, output language like "EN, CN, JP, KR etc..

I thing if the string is long enough, there should have some way to do it. Does anyone see these type of thing before?

Edit: sorry, this forum cannot post other language, all code changed, hope you still can understand.

[edited by: Eric at 5:05 pm (utc) on Oct. 14, 2007]

 

Featured Threads

Hot Threads This Week

Hot Threads This Month