not being displayed properly

前端 未结 5 2018
无人及你
无人及你 2021-01-07 01:35

I am having problem in displaying the   in my web page, after using utf8_decode() in PHP it gets displayed as �.

i have been using



        
5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-07 02:06

    That's strange since utf8_encode(' ')===' '. Regardless of whether it's utf8 or latin1 encoded the byte-sequence for   is the same.
    Is the remaining string properly utf8 encoded?

    edit: Why do you use utf8_decode() (converting utf8 encoded strings to latin1) in the first place when you're telling the browser that your page is utf8 encoded?

提交回复
热议问题