Re: return language of a word

From: Date: Mon, 29 Sep 2008 13:21:50 +0000
Subject: Re: return language of a word
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-281095@lists.php.net to get a copy of this message
Maciek Sokolewicz wrote:
shahrzad khorrami wrote:
Thanks for reply U+103A0 ... U+103DF How can I use of it?
Something along the lines of: http://www.php.net/manual/en/function.ord.php should return the ordinal, which can then be compared to that.
note: *but not ord()* [ord is only for ascii not utf-8; but still check the page there are some decent UTF8/unicode user submitted versions in the comments.
If you really want to do more with unicode and low-level twiddling (like you appear to want to), PLEASE read up on WHAT character-sets are, what encodings _are_, how they work, and how unicode and utf-8 work. Once you know all that, you can figure it out by yourself relatively easily. - Tul
yup googling and rtfm'ing virtually always answers these questions :)

« previous php.general (#281095) next »