l亂碼解決方法
亂碼有兩種:1,先檢查代碼拼寫 是否沒有錯誤; ? ? ? ? ? ? ? ? ? ?2,重點,可能是 字體路徑的問題,在windows需要轉義符,如下: ? ? ? ? ? ? ? ? ? ? ? ?imagettftext($image,20,0,100,100,$randcolor,'\/fonts\/courbi.ttf','XiCHENde');
亂碼有兩種:1,先檢查代碼拼寫 是否沒有錯誤; ? ? ? ? ? ? ? ? ? ?2,重點,可能是 字體路徑的問題,在windows需要轉義符,如下: ? ? ? ? ? ? ? ? ? ? ? ?imagettftext($image,20,0,100,100,$randcolor,'\/fonts\/courbi.ttf','XiCHENde');
2018-04-07
舉報
2018-04-07
亂碼有兩種:1,先檢查代碼拼寫 是否沒有錯誤; ? ? ? ? ? ? ? ? ? ?2,重點,可能是 字體路徑的問題,在windows需要轉義符,如下: ? ? ? ? ? ? ? ? ? ? ? ?imagettftext($image,20,0,100,100,$randcolor,'\/fonts\/courbi.ttf','XiCHENde');