PEAK XOOPS - Re: pico 0.95 betaについて in englishin japanese

Re: pico 0.95 betaについて

List posts in the topic

none Re: pico 0.95 betaについて

msg# 1.1.1.1.1.1.1
depth:
6
Previous post - Next post | Parent - Children.1 | Posted on 2007/1/28 4:33
GIJOE  先任軍曹   Posts: 4110
Quote:

starck wrotes:
ばっちり動作しました。ちなみに、wrapsモードはoffにしていました。
え? wrapsモードがOFFで、ですか?
……あ、bugだ!
というわけで直しました(汗

Apache1だの2だの環境の問題ではなく、単純なバグでした…

Quote:
あと、すいません。もうひとつありました。
RSSなのですが、私のサーバ環境だとうまく動作しないようなのです。Firefoxのエラーのほうが判りやすそうだったのでこちらを貼り付けておきます。
XML パースエラー: ドキュメント要素の後ろに不正な文字列があります。
URL: http://debian/xoops/modules/contents/index.php?page=rss
行番号: 59, 列番号: 7:</rss>Warning [PHP]: mb_convert_encoding(): Unable to detect character encoding in file include/functions.php line 728<br />
う〜ん。
これ、lolipopの話ですか?
軽くぐぐってみたら、やはりlolipopで、detect_orderがおかしくて、mb_convert_encoding()で、"auto"指定が効かない、なんてのが見つかりました。

これ、普通に考えればホスティングサービスのミスです。

すぐに直すなら、コアHackでしょうか。(モジュールではなく)

function &xoops_utf8_encode(&$text)
{
    if (XOOPS_USE_MULTIBYTES == 1) {
        if (function_exists('mb_convert_encoding')) {
            return mb_convert_encoding($text, 'UTF-8', 'auto');
            return mb_convert_encoding($text, 'UTF-8', 'EUC-JP');
        }
        return $text;
    }
    return utf8_encode($text);
}

コアに手を入れたくないなら、mainfile.php の最初の方で、
mb_detect_order("ASCII, JIS, UTF-8, EUC-JP");
と一行だけ入れておく、か。
Votes:11 Average:6.36

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!