Outputting dates in non-ASCII characters with PHP
I'm trying to output the date in Traditional Chinese. I have the date as a Unix timestamp, ( example: "1467244800" ). I am doing the following: <?php setlocale (LC_TIME, "zh_TW"); echo strftime("%e %B %Y", $timestamp ); ?> What I'm getting output is the Unicode "Undefined" characters: 30 ���� 2016 17 �T�� 2016 18 �Q�G�� 2015 Can anyone tell me what I'm doing wrong? My HTML headers contain: <html lang="zh-TW"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> And the rest of my Chinese content on the page is outputting fine. If you view the page source you see: <span>最新消息<