Search code examples
phpsolrhtmlspecialchars

Special characters in Solr Query


I am working with Solr search extension, and i found this probleme with my input data, there are some special chart that Solr do not accept. so if i write somethig like (in french):

"il faut être à l'aise"

=> i got

"il faut être à l & #39; aise"

event if i've added

    $helper->escapeTerm(); 
    htmlspecialchars($filter, ENT_NOQUOTES); 

I have the same output.

Do you have an idea ?
Thanks


Solution

  • I have just made str_replace(); to solve this porblem! thanks