Good morning when I make this request:
{
"query": {
"bool": {
"must":
{
"match": {
"titolo": "'.$titolo_check.'"
}
},
"filter": [
{
"term": {
"superficie": "'.$superficie.'"
}
},
{
"term": {
"prezzo": "'.$prezzo.'"
}
},
{
"term": {
"comune": "'.$comune_s.'"
}
}
]
}
}
}
I receive this error:
Fatal error : Uncaught exception 'Elasticsearch\Common\Exceptions\ServerErrorResponseException' with message '{"error":{"root_cause":[{"type":"json_parse_exception","reason":"Invalid UTF-8 middle byte 0x22\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@f9a751; line: 25, column: 30]"}],"type":"json_parse_exception","reason":"Invalid UTF-8 middle byte 0x22\n at
The problem occurs when the variable $comune_s has accents. How could I solve?