mattweber / solr-for-wordpress

A WordPress plugin that replaces the default WordPress search with Solr
85 stars 36 forks source link

Remove duplicate utf8 encoding #47

Open victorjonsson opened 12 years ago

victorjonsson commented 12 years ago

Calling utf8_encode in SolrPhpClient/Apache/Solr/Service.php on line 770 destroys multibyte characters.

Suggested change: (might also be good to add before calling htmlspecialchars on line 787 in the same file )

if( !seems_utf8($multivalue) )
  $multivalue = utf8_encode($multivalue);