Created
June 19, 2021 12:09
-
-
Save amilabandara/f7bb8213c04208f45c3a4d0e8c4a94b6 to your computer and use it in GitHub Desktop.
Convert Wired characters to correct chars ’
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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