{"id":839,"date":"2011-06-06T21:23:24","date_gmt":"2011-06-06T12:23:24","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=839"},"modified":"2011-06-06T21:23:24","modified_gmt":"2011-06-06T12:23:24","slug":"postgressql8-4-db%e4%bd%9c%e6%88%90%e6%99%82%e3%81%ab%e3%80%8c%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e7%94%9f%e6%88%90%e3%81%ab%e5%a4%b1%e6%95%97%e3%81%97%e3%81%be%e3%81%97","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2011\/06\/06\/postgressql8-4-db%e4%bd%9c%e6%88%90%e6%99%82%e3%81%ab%e3%80%8c%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e7%94%9f%e6%88%90%e3%81%ab%e5%a4%b1%e6%95%97%e3%81%97%e3%81%be%e3%81%97\/","title":{"rendered":"PostgresSQL8.4 DB\u4f5c\u6210\u6642\u306b\u300c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u751f\u6210\u306b\u5931\u6557\u3057\u307e\u3057\u305f: ERROR:  \u7b26\u53f7\u5316\u65b9\u5f0f EUC_JP \u304c\u30ed\u30b1\u30fc\u30eb ja_JP.UTF-8 \u306b\u5408\u3044\u307e\u305b\u3093\u300d\u5bfe\u7b56"},"content":{"rendered":"<p>PostgreSQL\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u4e0a\u304c\u3063\u305f\u304b\u3089\u306a\u306e\u304b\u3001\u305d\u308c\u3068\u3082Scientific Linux\u3060\u304b\u3089\u304b\u5206\u304b\u3089\u306a\u3044\u304c\u3053\u308c\u307e\u3067\u306f\u307e\u3063\u305f\u3053\u3068\u304c\u306a\u3044DB\u4f5c\u6210\u3067\u30cf\u30de\u308b\u3002<\/p>\n<p>[SHELL]<br \/>\n-bash-4.1$ createdb -E EUC_JP homedb<br \/>\ncreatedb: \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u751f\u6210\u306b\u5931\u6557\u3057\u307e\u3057\u305f: ERROR:  \u7b26\u53f7\u5316\u65b9\u5f0f EUC_JP \u304c\u30ed\u30b1\u30fc\u30eb ja_JP.UTF-8 \u306b\u5408\u3044\u307e\u305b\u3093<br \/>\nDETAIL:  \u9078\u629e\u3055\u308c\u305f LC_CTYPE \u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001\u7b26\u53f7\u5316\u65b9\u5f0f UTF8 \u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n#\u4e8c\u56de\u76ee\u306e\u30c8\u30e9\u30a4\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3068locale\u3092\u3042\u308f\u305b\u305f<br \/>\n-bash-4.1$ createdb -E EUC_JP &#8211;locale=ja_JP.EUC_JP homedb<br \/>\ncreatedb: \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u751f\u6210\u306b\u5931\u6557\u3057\u307e\u3057\u305f: ERROR:  \u65b0\u3057\u3044\u7b26\u53f7\u5316\u65b9\u5f0f(EUC_JP)\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7b26\u53f7\u5316\u65b9\u5f0f(UTF8)\u3068\u4e92\u63db\u6027\u304c\u3042\u308a\u307e\u305b\u3093<br \/>\nHINT:  \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7b26\u53f7\u5316\u65b9\u5f0f\u3068\u540c\u3058\u3082\u306e\u3092\u4f7f\u3046\u304b\u3001\u3082\u3057\u304f\u306f template0 \u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u3057\u3066\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044<br \/>\n#\u4e09\u56de\u76ee\u3058\u3083\u3041template0\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3057\u3066\u4f7f\u3046\u3088\uff01<br \/>\n-bash-4.1$ createdb -E EUC_JP &#8211;locale=ja_JP.EUC_JP homedb &#8211;template=template0<br \/>\n[\/SHELL]<\/p>\n<p>\u3046\u30fc\u3080\u3002\u3069\u3046\u3084\u30898.4\u304b\u3089DB\u4f5c\u6210\u6642\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u5897\u3048\u305f\u3088\u3046\u3060\u3002\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3068\u5408\u308f\u305b\u3066locale\u3092\u8a2d\u5b9a\u3057\u3066\u3042\u3052\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u3068\u3044\u3046\u308f\u3051\u3067DB\u3092\u65b0\u898f\u4f5c\u6210\u3059\u308b\u5834\u5408\u306f\u4f55\u3082\u624b\u9593\u304c\u304b\u304b\u3089\u306a\u3044UTF-8\u306b\u3059\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3002\u3053\u308c\u306a\u3089\u4ed6\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u3044\u3089\u306a\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PostgreSQL\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u4e0a\u304c\u3063\u305f\u304b\u3089\u306a\u306e\u304b\u3001\u305d\u308c\u3068\u3082Scientifi &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2011\/06\/06\/postgressql8-4-db%e4%bd%9c%e6%88%90%e6%99%82%e3%81%ab%e3%80%8c%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e7%94%9f%e6%88%90%e3%81%ab%e5%a4%b1%e6%95%97%e3%81%97%e3%81%be%e3%81%97\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11,155],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/839"}],"collection":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/comments?post=839"}],"version-history":[{"count":1,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/839\/revisions"}],"predecessor-version":[{"id":840,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/839\/revisions\/840"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=839"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=839"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}