We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14090
    • 12 Posts
    For people who are using ajaxsearch 1.80, using php4 and get weird characters in their search results.... Edit the file /classes/search.class.inc.php and go to the function called "getExtract".

    There change the line:
    $text = html_entity_decode($text, ENT_QUOTES);

    to:
    $text = html_entity_decode($text, ENT_QUOTES, ’UTF-8’);


    James.
      • 5811
      • 1,717 Posts
      But unfortunately the php function html_entity_decode doesn’t work with php version lower than 5.0. - see : http://bugs.php.net/bug.php?id=25670
        • 15877
        • 55 Posts
        I also have the weird characters, but only in the link description texts.
        Text on links looks fine, event when it has accents.

        I have tried to remove the description using &descriptionShow=`0` and it does not seem to work. I modified the /templates/result.tpl.html template to remove the description.
          • 5811
          • 1,717 Posts
          I have tried to remove the description using &descriptionShow=`0` and it does not seem to work
          [+as.descriptionShow+] is a placeholder. it takes the value of 1 if the data is available in the template, otherwise 0. It is not a parameter. So to remove the description, yes, remove the code part
          [+as.descriptionShow:is=`1`:then=`
            <span class="[+as.descriptionClass+]">[+as.description+]</span>`+]
          from your template.