I have some records on my database that have special characters, like: "Cybercafé".
Is there a way to substitute special characters in the query string and in the database. something like this:
beggining of sub query:
in{'keyword'} =~ s/é/e/;
and later on sub query:
LINE: while (<DB> ) {
(/^#/) and next LINE;
(/^\s*$/) and next LINE;
$line = $_;
chomp ($line);
$line =~ s/é/e/;
@values = &split_decode($line);
...
Like this if the user enter with "cybercafé" or "cibercafe", dbman will find the right record.
thanks.
Is there a way to substitute special characters in the query string and in the database. something like this:
beggining of sub query:
in{'keyword'} =~ s/é/e/;
and later on sub query:
LINE: while (<DB> ) {
(/^#/) and next LINE;
(/^\s*$/) and next LINE;
$line = $_;
chomp ($line);
$line =~ s/é/e/;
@values = &split_decode($line);
...
Like this if the user enter with "cybercafé" or "cibercafe", dbman will find the right record.
thanks.