[nycphp-talk] Squashing accented characters
Chris Snyder
chsnyder at gmail.com
Mon Oct 25 07:37:32 EDT 2010
On Fri, Oct 22, 2010 at 2:57 PM, Andrew Yochum <andrew at plexpod.com> wrote:
> Hi Paul,
>
> You can achieve that with unicode transliteration:
> http://cldr.unicode.org/index/cldr-spec/transliteration-guidelines
> Check out the PHP Iconv extension:
> http://us.php.net/manual/en/intro.iconv.php
>
> Hope that helps!
An example would rock this thread, Andrew.
Transliteration is non-obvious. From the GNU iconv page:
"It has also some limited support for transliteration, i.e. when a
character cannot be represented in the target character set, it can be
approximated through one or several similarly looking characters.
Transliteration is activated when "//TRANSLIT" is appended to the
target encoding name. "
So you would need to pre-convert all of your searchable terms into
ISO-8859-1/TRANSLIT ?
More information about the talk
mailing list