2009-04-26 postgresql データベースをEUC_JP からUTF8に変更する 1)データベースのバックアップを作る pg_dump olddatabase > db.out2)UTF-8に変換 nkf -w --overwrite db.out3)データの中のEUC_JP の箇所をUNICODE に sed -e "s/EUC_JP/UNICODE/g" db.out > db.out.24)新しいデータベースをつくって createdb -E utf8 newdatabase5)その中にデータを入れる psql -e newdatabase < db.out 参考URL http://www.omnibase.net/mt/index.php?e=980