Skip to content

Instantly share code, notes, and snippets.

@amilabandara
Created June 19, 2021 12:09
Show Gist options
  • Save amilabandara/f7bb8213c04208f45c3a4d0e8c4a94b6 to your computer and use it in GitHub Desktop.
Save amilabandara/f7bb8213c04208f45c3a4d0e8c4a94b6 to your computer and use it in GitHub Desktop.
Convert Wired characters to correct chars ’
/*
If you ever see your characters , specially ' and "" converted to ’ this type of characters, this may help you.
*/
$string = "Buyer’s Agent";
echo iconv ( 'UTF-8', 'macintosh', $string );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment