开发者

PHP character problem

开发者 https://www.devze.com 2023-02-05 21:13 出处:网络
I have a problem with characters in PHP, I call date from MySQL that holds some special characters for example: (œÏïÎîÔôËÊÉÈëêéèÀàçÍíóÓéèÉÈÚúáàÁÀãñÑÖöÜüßÉ) the

I have a problem with characters in PHP, I call date from MySQL that holds some special characters for example: (œÏïÎîÔôËÊÉÈëêéèÀàçÍíóÓéèÉÈÚúáàÁÀãñÑÖöÜüßÉ) the result 开发者_StackOverflowgive me � how can I fix that ?


That character means you're outputting ANSI characters while telling the browser it is UTF-8. You should correct your HTML ContentType meta and/or content-encoding header, or convert the characters to UTF8 using utf8encode first.

0

精彩评论

暂无评论...
验证码 换一张
取 消