Question
recode_string: replacing diacritical marks
hi:
MacOS 10.4.8, PHP 5.1.6, MySQL 4.1.21
i have a DB with some fields (collation: latin1_general_ci, type:
VARCHAR & TEXT) containing texts in several occidental european
languages. for a search function i need to replace diaccritical marks
á -> a
è -> e
ü -> u
...
and i've been trying the recode_string function but the example in
php.net isn't working (shows nothing):
<?php
echo recode_string("us..flat", "The following character has a
diacritical mark: á");
?>
any solution apart ffrom using a lookup table?
tia,
jdoe
MacOS 10.4.8, PHP 5.1.6, MySQL 4.1.21
i have a DB with some fields (collation: latin1_general_ci, type:
VARCHAR & TEXT) containing texts in several occidental european
languages. for a search function i need to replace diaccritical marks
á -> a
è -> e
ü -> u
...
and i've been trying the recode_string function but the example in
php.net isn't working (shows nothing):
<?php
echo recode_string("us..flat", "The following character has a
diacritical mark: á");
?>
any solution apart ffrom using a lookup table?
tia,
jdoe
