NoName Mobile
登录
NoName
» Project Parasy » [求助]最新回覆及nowhere出現亂碼!
[求助]最新回覆及nowhere出現亂碼!
by
respiration
at 2008-11-3 02:21
http://money-printer.org/image/pics/9991b7e42157c386bcb282a1858f2967.JPG
就像這
我的論壇是gbk->utf-8 編碼的
這個如何改呀...教教我吧!
# 1
-
respiration
at 2008-11-3 02:21
字體都上傳了...還是一樣亂碼
# 2
-
Sai
at 2008-11-3 11:41
这个需要修改parasy_json_tab.php中的
[Copy to clipboard]
CODE:
$top[$i]['name'] = iconv('gbk', 'utf-8', $topic['name']);
这样使用了iconv的部分,把iconv('gbk', 'utf-8', $topic['name'])直接改成$topic['name'],以此类推
# 3
-
respiration
at 2008-11-3 15:03
改了後可以了
但是時間沒法正常演示
出來的全是數字...
http://2ctalk.co.cc/bbs/
# 4
-
respiration
at 2008-11-3 15:04
字體已經上傳到/bbs/include/fonts 裡了
04b03.ttf
msyh.ttf
# 5
-
Sai
at 2008-11-3 22:22
这里应该是这样的
[Copy to clipboard]
CODE:
$top[$i]['lastpost'] = iconv('gbk', 'utf-8', make_descriptive_time($topic['lastpost']));
改为
[Copy to clipboard]
CODE:
$top[$i]['lastpost'] = make_descriptive_time($topic['lastpost']);
有一个时间转换的函数
# 6
-
respiration
at 2008-11-3 23:09
大! 最新回覆正常了 但NOWHERE還是數字亂碼
有舍解決的方法嗎
# 7
-
respiration
at 2008-11-4 17:51
sai救救我(ll08)
# 8
-
Sai
at 2008-11-4 19:35
Nowhre是一样的改法
[Copy to clipboard]
CODE:
$now[$i]['dateline'] = make_descriptive_time($nowhere['dateline']);
# 9
-
respiration
at 2008-11-4 23:02
done! thank you much, sai!
© 2007 NoNameMagazine