Support » Plugin: Petfinder Listings » Dog description contains weird characters / symbols

Viewing 4 replies - 1 through 4 (of 4 total)
  • We are also having this same issue. Characters like apostrophe show up as â although they show up normally on Petfinder.

    Anyone has an answer for this? we still have the problem. :/ Same thing, characters like apostrophe show up as â.

    Plugin Author bridgetwes

    (@bridgetwes)

    Petfinder doesn’t seem to encode their data correctly.You can replace curly apostrophes with a straight apostrophe (the key next to enter) in your pet description and it should work fine. Same for curly quotes and any special characters you can’t get straight from your keyboard.

    If you are still having this issue, use utf8_decode();
    Tested and working using barma’s shelter id.

    petfinder-listings.php, line 306

    original
    $output_buffer .= "<div class=\"description\">" . $dog->description . "</div><div class=\"features\">" . $dog->age . ", " . (($dog->sex == "M") ? "Male" : "Female") . ", " . $dog->get_size() . "</div></div>";

    fixed
    $output_buffer .= "<div class=\"description\">" . utf8_decode($dog->description) . "</div><div class=\"features\">" . $dog->age . ", " . (($dog->sex == "M") ? "Male" : "Female") . ", " . $dog->get_size() . "</div></div>";

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Dog description contains weird characters / symbols’ is closed to new replies.