Re: return language of a word

From: Date: Mon, 29 Sep 2008 11:49:07 +0000
Subject: Re: return language of a word
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-281089@lists.php.net to get a copy of this message
shahrzad khorrami wrote:
hi all, is there any function to return us the lanuage of a word in the sentence? for example : My name is شهرزاد . when it sees شهرزاد notice that is a persian language. Thanks
best way i can see it to use the google language detection api [thats what I do] - I'd assume you're always going to need to use utf8; thus any form of charset detection is out the window.

« previous php.general (#281089) next »