Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

Detect the language of a String

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

Junior Member

10+ Year Member

joined:Sept 16, 2007
votes: 0

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)

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]


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members