<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>nobu417.jp ::: Techlog</title>
    <link rel="alternate" type="text/html" href="http://www.nobu417.jp/techlog/" />
    <link rel="self" type="application/atom+xml" href="http://www.nobu417.jp/techlog/atom.xml" />
    <id>tag:www.nobu417.jp,2010-01-09:/techlog//7</id>
    <updated>2010-02-26T09:14:44Z</updated>
    
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 4.24-ja</generator>

<entry>
    <title>XOOPS の文字化け対処法</title>
    <link rel="alternate" type="text/html" href="http://www.nobu417.jp/techlog/xoops/xoops.html" />
    <id>tag:www.nobu417.jp,2010:/techlog//7.270</id>

    <published>2010-02-26T09:12:59Z</published>
    <updated>2010-02-26T09:14:44Z</updated>

    <summary> うさぎにもできるXOOPS Cube入門♪ - Re: 文字化け DBの文字コ...</summary>
    <author>
        <name>Nobuyuki Sato</name>
        <uri>http://www.nobu417.jp/</uri>
    </author>
    
        <category term="XOOPS" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.nobu417.jp/techlog/">
        <![CDATA[<blockquote>

<p><a href="http://usadeki.jp/modules/d3forum/index.php?post_id=206"><strong>うさぎにもできるXOOPS Cube入門♪ - Re: 文字化け</strong></a></p>

<p>DBの文字コード参照順序がlatin1_general_ciになってると、<br />
XOOPS2.0.x なら、表示は文字化け無し<br />
XOOPS Cube Legacy 2.1.x だとブロックタイトルとか???って文字化けしますね。</p>

<p>サーバにphpMyAdminが入っているなら、次の点を確認してみてください。<br />
1．XOOPS用のテーブルの照合順序の欄が何になっているか？<br />
　たぶんlatin1_general_ciになってると思います。</p>

<p>2．phpMyAdmin画面上部のタブで「操作」というのがありますので、そこで「照合順序」を確認してください。<br />
　ここもたぶんlatin1_general_ciになってると思います。<br />
　ここを「ujis_japanese_ci」に変更してから、インストールしなおしてもらえますか。それで解決すると思います。<br />
</blockquote></p>

<p>XOOPS Cube 2.1.7 で文字化けでハマった時にここで解決。</p>]]>
        
    </content>
</entry>

<entry>
    <title>XOOPS を UTF-8 で動かすメモ</title>
    <link rel="alternate" type="text/html" href="http://www.nobu417.jp/techlog/xoops/xoops-utf-8.html" />
    <id>tag:www.nobu417.jp,2010:/techlog//7.268</id>

    <published>2010-02-19T08:50:37Z</published>
    <updated>2010-02-19T08:54:59Z</updated>

    <summary> [Linux]XOOPS Cube を文字コード EUC でなく、 UTF-8...</summary>
    <author>
        <name>Nobuyuki Sato</name>
        <uri>http://www.nobu417.jp/</uri>
    </author>
    
        <category term="XOOPS" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.nobu417.jp/techlog/">
        <![CDATA[<blockquote>

<p><a href="http://d.hatena.ne.jp/iwa/20090119/1232289230"><strong>[Linux]XOOPS Cube を文字コード EUC でなく、 UTF-8 で動かす</strong></a></p>

<p>ファイルを解凍すると以下の3つのフォルダができる<br />
html・・・htmlフォルダの中身をWebに公開する場所にコピー(public_htmlやpublic_html/xoopsなど)<br />
extras・・・extras/extra_languages/ja_utf8/html/ フォルダを上記htmlフォルダと同じ場所に上書きコピー<br />
docs・・・とくに使わない(無視)<br />
ブラウザ経由でpublic_htmlなどに公開されている場所にアクセスし、最初のインストール時の言語選択画面で「japanese」でなく、「ja_utf8」を選択して次へを選択(ここで躓いていた)<br />
あとは親切なXOOPSインストール方法マニュアルサイト通りに進めればOK<br />
</blockquote></p>

<p>XOOPS はデフォルトでは文字コードが EUC なので、UTF-8 で動かすためのメモ。</p>]]>
        
    </content>
</entry>

<entry>
    <title>MovableType の MTIfFolder で久々にハマる</title>
    <link rel="alternate" type="text/html" href="http://www.nobu417.jp/techlog/movabletype/movabletype-mtiffolder.html" />
    <id>tag:www.nobu417.jp,2010:/techlog//7.267</id>

    <published>2010-02-15T18:52:58Z</published>
    <updated>2010-02-15T18:53:18Z</updated>

    <summary>MTIfFolder はウェブページ方面のテンプレートでは反映されるが、ブログ系...</summary>
    <author>
        <name>Nobuyuki Sato</name>
        <uri>http://www.nobu417.jp/</uri>
    </author>
    
        <category term="MovableType" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.nobu417.jp/techlog/">
        <![CDATA[<p>MTIfFolder はウェブページ方面のテンプレートでは反映されるが、ブログ系のテンプレートではエラーが返される。しかしヘッダーのテンプレートでナビゲーションを組み込んでいる場合、両方のテンプレートでエラーが起きないようにしなければならない。そのためには、ウェブページテンプレートに $mt:SetVar で name="page" value="webpage" などとしてやり、ヘッダーテンプレートのウェブページへのリンク部分では mt:if の条件式で、name="page" eq="webpage" などで分岐してやった中に MTIfFolder を入れてやることで、ブログ系テンプレートでは MTIfFolder タグが参照されないように回避する。</p>]]>
        
    </content>
</entry>

<entry>
    <title>gVim (MacVim) の .gvimrc</title>
    <link rel="alternate" type="text/html" href="http://www.nobu417.jp/techlog/mac-os-x/gvim-macvim-gvimrc.html" />
    <id>tag:www.nobu417.jp,2010:/techlog//3.131</id>

    <published>2010-02-06T13:09:50Z</published>
    <updated>2010-02-06T13:21:43Z</updated>

    <summary>現時点での .gvimrc の設定内容。 set enc=utf-8 set f...</summary>
    <author>
        <name>Nobuyuki Sato</name>
        <uri>http://www.nobu417.jp/</uri>
    </author>
    
        <category term="Mac OS X" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.nobu417.jp/techlog/">
        <![CDATA[<p>現時点での .gvimrc の設定内容。</p>
<pre>
set enc=utf-8
set fenc=utf-8
set fencs=iso-2022-jp,utf-8,euc-jp,cp932
set fileformats=unix,dos,mac
colorscheme desert
set imdisable
set showtabline=2
set guifont=Osaka-Mono:h12
set columns=120
set lines=40
set antialias
set transparency=5
syntax on
set autoindent
set tabstop=4
set number
set nobackup
</pre>
<p>以上、メモ書き。</p>]]>
        
    </content>
</entry>

<entry>
    <title>HTML::Template</title>
    <link rel="alternate" type="text/html" href="http://www.nobu417.jp/techlog/movabletype/htmltemplate.html" />
    <id>tag:www.nobu417.jp,2010:/techlog//3.128</id>

    <published>2010-01-27T13:46:48Z</published>
    <updated>2010-01-27T13:48:32Z</updated>

    <summary>お名前.com の提供する VPS では、デフォルトでは CPAN モジュールの...</summary>
    <author>
        <name>Nobuyuki Sato</name>
        <uri>http://www.nobu417.jp/</uri>
    </author>
    
        <category term="MovableType" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.nobu417.jp/techlog/">
        <![CDATA[<p>お名前.com の提供する VPS では、デフォルトでは CPAN モジュールの HTML::Template が入っていない。MT4i を利用するためには HTML::Template は必須なので、VPS に SSH ユーザーを作成した後に SSH ログイン、su コマンドで root を取得して、CPAN を設定、その後 HTML::Template をインストールする必要がある。</p>]]>
        
    </content>
</entry>

<entry>
    <title>SSI や .htaccess が使えないサーバー</title>
    <link rel="alternate" type="text/html" href="http://www.nobu417.jp/techlog/movabletype/ssi-htaccess.html" />
    <id>tag:www.nobu417.jp,2010:/techlog//3.106</id>

    <published>2010-01-14T16:51:56Z</published>
    <updated>2010-01-14T16:54:04Z</updated>

    <summary>MovableType でサイドバーなどを動的出力したい時には SSI を使う場...</summary>
    <author>
        <name>Nobuyuki Sato</name>
        <uri>http://www.nobu417.jp/</uri>
    </author>
    
        <category term="MovableType" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.nobu417.jp/techlog/">
        <![CDATA[<p>MovableType でサイドバーなどを動的出力したい時には SSI を使う場面が多いが、SSI そのものが使えなかったり、*.shtml の拡張子を強制された上に .htaccess で拡張子の変更をできないサーバーもある。そんな時は PHP の include を利用する。拡張子は .php になってしまうが、やっていることは基本的に同じなので問題ないはず。</p>]]>
        
    </content>
</entry>

<entry>
    <title>MovableType の携帯サイト対応術</title>
    <link rel="alternate" type="text/html" href="http://www.nobu417.jp/techlog/movabletype/movabletype.html" />
    <id>tag:www.nobu417.jp,2010:/techlog//3.105</id>

    <published>2010-01-09T13:04:01Z</published>
    <updated>2010-01-09T19:03:20Z</updated>

    <summary> MT4i UTF-8 に対応した Web ブラウザーやツールなども増えてきまし...</summary>
    <author>
        <name>Nobuyuki Sato</name>
        <uri>http://www.nobu417.jp/</uri>
    </author>
    
        <category term="MovableType" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.nobu417.jp/techlog/">
        <![CDATA[<blockquote>

<p><a href="http://www.hazama.nu/pukiwiki/index.php?MT4i"><strong>MT4i</strong></a></p>

<p>UTF-8 に対応した Web ブラウザーやツールなども増えてきましたが、まだまだShift_JIS のみサポートというケースも少なくありません。特に、i-mode などの携帯電話用 Web ブラウザーの多くが Shift_JIS のみのサポートに留まっています。日本では最も普及していると思われる、しかも至極手軽にネットへ接続できる環境があるというのに、そこからは自分のブログが文字化けして見ることができないわけです。</p>

<p>そこで作成したのが MT4i です。MT4i は、（MovableType の MT::Object を利用して）MovableType のデータベースからデータを読み込み、文字コードを Shift_JIS に変換、携帯電話向けにレイアウトして出力し、携帯電話に対応させる為のスクリプトです。言語は Perl です。<br />
</blockquote></p>

<p>MovableType をメインの CMS として使った時に、docomo、au、SoftBank の3キャリアの携帯でも動的ながら携帯に最適化された状態で閲覧できるようにするための MovableType 用プラグイン。</p>]]>
        
    </content>
</entry>

</feed>

