How to set UTF-8 encoding in solr-php client to store hindi content in solr

316 views Asked by At

Can Any one help out to set UTF-8 encoding in solr-php client.The out put in solr After adding document is As below-

"info_type": "news",
    "title": "???????? ??????? ?? ?????? ????? ???? ?? 106 ???? ?? ???? ??? ????"

The above Question marks were hindi content stored in UTF-8 format.

Below is the Request Parameter for adding document in Solr by PHP Client

$options = array
(
'hostname' => 'HOST_NAME',
'login' => 'USER',
'password' => 'PASS',
'port' => 'PORT_NUMBER',
'path' => 'SOLR_NAME/CORE_NAME');
$client = new SolrClient($options);
$doc = new SolrInputDocument();
$updateResponse = $client->addDocument($doc);
$client->commit();
0

There are 0 answers