Getting ’ instead of an apostrophe(') in PHP

前端 未结 14 1010
慢半拍i
慢半拍i 2020-11-27 02:38

I\'ve tried converting the text to or from utf8, which didn\'t seem to help.

I\'m getting:

\"It’s Getting the Best of Me\"

It sho

14条回答
  •  被撕碎了的回忆
    2020-11-27 03:26

    It sounds like you're using standard string functions on a UTF8 characters (’) that doesn't exist in ISO 8859-1. Check that you are using Unicode compatible PHP settings and functions. See also the multibyte string functions.

提交回复
热议问题