respiration


disconnected
主题工具

[求助]最新回覆及nowhere出現亂碼!

... 发表于 2008-11-3 02:21  ... 11120 次点击


就像這
我的論壇是gbk->utf-8  編碼的
這個如何改呀...教教我吧!

本主题共有 9 条回复 | 回到顶部
#1 - 2008-11-3 02:21
respiration 地球
字體都上傳了...還是一樣亂碼
#2 - 2008-11-3 11:41
Sai 桂林
这个需要修改parasy_json_tab.php中的
$top[$i]['name'] = iconv('gbk', 'utf-8', $topic['name']);

这样使用了iconv的部分,把iconv('gbk', 'utf-8', $topic['name'])直接改成$topic['name'],以此类推
#3 - 2008-11-3 15:03
respiration 地球
改了後可以了
但是時間沒法正常演示
出來的全是數字...
http://2ctalk.co.cc/bbs/
#4 - 2008-11-3 15:04
respiration 地球
字體已經上傳到/bbs/include/fonts 裡了
04b03.ttf
msyh.ttf
#5 - 2008-11-3 22:22
Sai 桂林
这里应该是这样的
$top[$i]['lastpost'] = iconv('gbk', 'utf-8', make_descriptive_time($topic['lastpost']));

改为
$top[$i]['lastpost'] = make_descriptive_time($topic['lastpost']);

有一个时间转换的函数
#6 - 2008-11-3 23:09
respiration 地球
大! 最新回覆正常了  但NOWHERE還是數字亂碼
有舍解決的方法嗎
#7 - 2008-11-4 17:51
respiration 地球
sai救救我
#8 - 2008-11-4 19:35
Sai 桂林
Nowhre是一样的改法
$now[$i]['dateline'] =  make_descriptive_time($nowhere['dateline']);

#9 - 2008-11-4 23:02
respiration 地球
done! thank you much, sai!
看完之后有话想说?那就帮楼主加盖一层吧!

在回复之前你需要先进行登录
用户名 / UID
密码
Project Parasynthesis | Based on Discuz! 5.5.0 | Thanks to Livid
About | Help | Developer | N2Design
清除 Cookies - 联系我们 - 无名杂志 - Archiver - Mobile
Processed in 0.047866 second(s), 6 queries, Gzip enabled