MovableType3.3のPublishCharset設定のしかた
![]()
MovableType3.3のconfigには文字コードを記述する部分が抜けています。
デフォルトの文字コードはutf-8になっているためeuc-jpでつくっていたBlogでそのまま引き継ごうとすると文字化けしてしまいました。
エントリーを取り込むときは文字コードをutf-8にしてから取り込む必要があります。
またはMovableTypeの文字コートを異化のように指定してあげればOK。
## Movable Type configuration file ##
## ##
## This file defines system-wide settings for Movable Type ##
## In total, there are 147 options, but only those critical ##
## for everyone are listed below. ##
## ##
## Information on all others can be found at: ##
## http://www.sixapart.jp/movabletype/manual/3.3/config
################################################################
##################### REQUIRED SETTINGS ########################
################################################################
# The CGIPath is the URL to your Movable Type directory
CGIPath http://www.example.com/cgi-bin/mt/
# The StaticWebPath is the URL to your mt-static directory
# Note: Check the installation documentation to find out
# whether this is required for your environment. If it is not,
# simply remove it or comment out the line by prepending a "#".
StaticWebPath http://www.example.com/mt-static
#================ DATABASE SETTINGS ==================
# REMOVE all sections below that refer to databases
# other than the one you will be using.
##### MYSQL #####
#ObjectDriver DBI::mysql
#Database DATABASE_NAME
#DBUser DATABASE_USERNAME
#DBPassword DATABASE_PASSWORD
#DBHost localhost
##### POSTGRESQL #####
#ObjectDriver DBI::postgres
#Database DATABASE_NAME
#DBUser DATABASE_USERNAME
#DBPassword DATABASE_PASSWORD
#DBHost localhost
##### SQLITE #####
#ObjectDriver DBI::sqlite
#Database /path/to/sqlite/database/file
##### BERKELEYDB #####
DataSource /path/to/database/directory
PublishCharset euc-jp













このページへのリンクタグ