not being displayed properly

前端 未结 5 1971
无人及你
无人及你 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 01:44

    When you use utf8_decode, the string that is passed to this function where is it loaded from? Are you loading data from database? Do you have any included files? If so, check that they are all encoded as GmonC wrote. Try to echo   somewhere in page and see if it will show correctly. If not, try to make clean .php file and than see if problem still occurs. If not than some included file could be the problem because it could have different encoding

提交回复
热议问题