我的也有這問題,蠻多文字都會這樣…mysql4.0.24
照
http://open.38.com/index.php?topic=1948.0 改,應該就可以了
改了,問題都一樣
我的主題如下
===================================================
我在你們的網睇中一條 A1000017 8mm圓珠綠髮晶手鍊 ,但你們寄過來的貨會否貨不對板? 例如 : 髮晶手鍊的髮沒如相中看的多,或是髮晶手鍊的珠花了?
發表了文章後跳回前版面主題變成:
===================================================
我在你們的網睇中一條 A1000017 8mm圓珠綠髮晶手鍊 ,但你們寄過來的貨會否貨伯a>
想進入這主題, 只看到空白一片
回到首頁,版面也給弄亂了!
問題應該不在主題字數的長度, 可能都是有些中文字變成亂碼做成的!
試了一下覺得應該是標題長度的問題
因為長度太長.所以SMF去切標題,卻剛好在一個中文字的中間把字切開來了造成的問題
在ie下看雖然是一片空白可是檢示原始檔卻是有東西的
其中 <title>我在你們的網睇中一條 A1000017 8mm圓珠綠髮晶手鍊 ,但你們寄過來的貨會否貨⺯title> 這個的尾巴 </title> 錯了所以就一片空白(我猜的啦c.c.),而在FireFox下就可以正常顯示
我試一下用
http://open.38.com/index.php?topic=1948.0 裡提到的 utf8.php 來取來這段 strlen 跟 substr 應該就可以了
不過要先把 utf8.php 放到你指定的目錄再 include 進來才能用喔
除了底下這些還要很多地方都是在 make sure the subject isn't too long 應該都要改吧?..沒測耶,因為我的 freebsd 在更新中沒空測.

// At this point, we want to make sure the subject isn't too long.
$strlen_subject = preg_replace('~&(#\d{4,5}|#[3-9]\d{2,4}|#2[6-9]\d|quot|#039|amp|lt|gt);~', '_', stripslashes($_POST['subject']));
// We're stripping and adding the slashes to correctly trim it, and we're only taking off what's needed to make $strlen_subject 100.
if (strlen($strlen_subject) > 100)
$_POST['subject'] = addslashes(substr(stripslashes($_POST['subject']), 0, 100 - strlen($strlen_subject)));
// At this point, we want to make sure the subject isn't too long.
$strlen_subject = preg_replace('~&(#\d{4,5}|#[3-9]\d{2,4}|#2[6-9]\d|quot|#039|amp|lt|gt);~', '_', stripslashes($_POST['subject']));
// We're stripping and adding the slashes to correctly trim it, and we're only taking off what's needed to make $strlen_subject 100.
if (utf8_strlen($strlen_subject) > 50)
$_POST['subject'] = addslashes(utf8_substr(stripslashes($_POST['subject']), 0, 50 - utf8_strlen($strlen_subject)));