I am having an issue with character encoding while indexing DCPs into SOLR using Si4T. DCPs published which make use of the "Enable Search Indexing" building block have their French accent characters encoded improperly in SOLR. However, if the same Component Template is set to be published embedded on a Page instead of being dynamic and that Page is then published with the same Component attached then the entry in SOLR will be correctly encoded.
For example if we have a Component that contains the content "tést Test Unique" and it is published both as a DCP and as a embedded Component on a Page, the following is observed in SOLR when a search for "Test Unique" is completed in the SOLR dashboard:
{
"pubdate": "2017-04-21T16:03:11.834Z",
"id": "dcp:2051-11281-23297",
"parentsgid": [
0
],
"publicationid": [
2051
],
"url": [
"tcm:2051-11281"
],
"body": [
"tést Test Unique. tést.. "
],
"title": [
"tést"
],
"schemaid": [
2820
],
"type": [
0
],
"itemtype": [
16
],
"_version_": 1565304387622928400
},
{
"pubdate": "2017-04-21T16:03:10.492Z",
"id": "tcm:2051-11327-64",
"sgid": [
1163,
1043
],
"parentsgid": [
1163
],
"publicationid": [
2051
],
"url": [
"/fr/projects/test.aspx"
],
"body": [
"tést Test Unique. tést.. "
],
"title": [
"tést"
],
"schemaid": [
2795
],
"type": [
0
],
"itemtype": [
64
],
"_version_": 1565304386215739400
}
Previewing the DCP in Tridion shows index data that looks good. Same with Template Builder. Additionally, the DCP looks good when published to the file system as well.