iT邦幫忙

0

關於亂碼

https://ithelp.ithome.com.tw/upload/images/20210628/20138057qINQKbfPH3.png
這個要如何讓它顯示正常文字

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

0
EN
iT邦好手 1 級 ‧ 2021-06-28 22:25:54

Google 關鍵字: php mssql 亂碼
第一個應該就能解決你的問題了: PHP連線MSSQL顯示中文時為亂碼

1
japhenchen
iT邦超人 1 級 ‧ 2021-06-30 12:21:06
$newdata = iconv('big5','utf-8',$data);

上一個方法遇到罕見字會出現錯誤時,要用這個方法

(big5沒有unicode下的罕見字,所以以下是反過來轉換)

$string = "轉碼測試功蓋銹abc轉碼測試"; 
$result = mb_convert_encoding($string,"utf-8","big5");
echo $result;

我要發表回答

立即登入回答