Personally I use this function which also replace HTML codes by true iso
characters
(HTML codes cause search requests to fail):
function toIso(text)
{
var html =
"&##201;,á,à,â,æ,å,ã,ä,"
& "é,è,ë,ê,í,ì,ï,î,"
&
"ó,ò,ö,ô,ø,ú,ù,û,ü,"
& "ç,ñ,ð,ß,ÿ,ý,"
& "Á,À,Â,&Aelig;,Å,Ã,Ä,"
& "É,È,Ë,Ê,Í,Ì,Ï,Î,"
&
"Ó,Ò,Ö,Ô,Ø,Ú,Ù,Û,Ü,"
&
"Ç,Ñ,Ð,Ÿ,ý,’,,&##8211;,–,&";
var ISO = "É,á,à,â,æ,å,ã,ä,"
& "é,è,ë,ê,í,ì,ï,î,"
& "ó,ò,ö,ô,ø,ú,ù,û,ü,"
& "ç,ñ,ð,ß,ÿ,ý,"
& "Á,À,Â,Æ,Å,Ã,Ä,"
& "É,È,Ë,Ê,Í,Ì,Ï,Î,"
& "Ó,Ò,Ö,Ô,Ø,Ú,Ù,Û,Ü,"
& "Ç,Ñ,Ð,Y,Ý,',',-,-,&";
text = replaceList (text, html, ISO);
return REreplace(text, "[[:space:]]+", " ", "all");
}
It also replaces any line break or multiple spaces by only one space.
You have at least two types of single quote replaced by an apostrophe.
You can add whatever character you need to be converted in the list html,
and its replacement at the same place in list ISO.
You can also remove all characters you don't need.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318363
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4