I am trying to write a custom form for my own search facet. In the form, the labels of the elements are dinamically generated based on the indexed values, and they can contain special Hungarian characters, which are not displayed correctly. This is my code:
$form['facets'][$current_property] = array( '#type' => 'select', '#title' => $current_property, '#multiple' => TRUE, '#options' => $myoptions, '#default_value' => $widget->buildDefaultValue($element), '#attributes' => array('class' => array('facetapi-multiselect', $form_state['facetapi_multiselect']['facet_class'])), '#post_render' => array('_facetapi_multiselect_modified_disable_options'), );
So, for example, if $current_property is Belső memória/tárhely, then Bels? memória/tárhely is displayed in the search facet.
Can you suggest any ways how to do this correctly? Thank you very much in advance.