我试图用strftime回显日期,但我的utf-8字符编码不好. (基本上是重音字符)
setlocale(LC_TIME,'spanish'); define("CHARSET","iso-8859-1"); echo strftime("%A,%d de %B",strtotime($row['Date']));
尝试添加utf8_encode()
setlocale(LC_TIME,"iso-8859-1"); echo utf8_encode(strftime("%A,strtotime($row['Date'])));