Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Kramer

    (@kramerkeller)

    Guys

    I think I fixed this… but I have never actually edited a plugin in my life and have no clue what I am doing… so if someone can check on this that would be great. I saw in search-autocomplete/searchautocomplete.php this line

    $results[$index]['title'] = htmlspecialchars_decode( $result['title'] );
    In researching... I think what is supposed to be used is html_entity_decode()
    See documentation here - https://php.net/html_entity_decode

    So… I tried this… and it worked! Basically we got to decode UTF-8.

    $results[$index]['title'] = html_entity_decode(htmlspecialchars_decode( $result['title'] ),ENT_COMPAT, 'UTF-8');

    Maybe we don’t need to wrap that around the htmlspecialchars_decdoe funtion… maybe it is supposed to be used in place of it… but I’m going to keep the above because it seems to work.

    Thread Starter Kramer

    (@kramerkeller)

    resolved

    johnrodney

    (@johnrodney)

    ^ this solved the issue for me as well. Sorry to necro, but wanted to say thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hyphen showing up incorrectly on new install’ is closed to new replies.