[pgsql-jp: 36529] Re: ignoring unconvertible UTF-8 character0xe28094

post gress santasan @ mahorobakan.jp
2005年 12月 12日 (月) 15:54:48 JST


さいとうさん、返信ありがとうございます。

ご指摘いただいた、
 [pgsql-jp: 33962] UNICODEとEUC_JP用の新たなconversion
  http://ml.postgresql.jp/pipermail/pgsql-jp/2004-September/017522.html

に従って、Vine26r4上のPostgreSQL7.4.8で試そうとしております、、、、が。

DROP CONVERSION pg_catalog.euc_jp_to_utf_8;
CREATE CONVERSION pg_catalog.euc_jp_to_utf_8 FOR 'EUC_JP' TO 'UNICODE' FROM
euc_jp_to_utf8;
CREATE DEFAULT CONVERSION pg_catalog.euc_jp_jis_to_utf_8 FOR 'EUC_JP' TO 'UNICODE'
FROM euc_jp_jis_to_utf8;
DROP CONVERSION pg_catalog.utf_8_to_euc_jp;
CREATE CONVERSION pg_catalog.utf_8_to_euc_jp FOR 'UNICODE' TO 'EUC_JP' FROM
utf8_to_euc_jp;
CREATE DEFAULT CONVERSION pg_catalog.utf_8_to_euc_jp_jis FOR 'UNICODE' TO 'EUC_JP'
FROM utf8_to_euc_jp_jis;

のCREATE DEFAULT CONVERSIONでエラーが出て四苦八苦しております。

tarを展開して得られるutf8_and_euc_jp_jis.sqlを
$ psql -f utf8_and_euc_jp_jis.sql foodb

して、次にutf8_and_euc_jp_jis.sql内のコメントアウトの部分を動作させると、CREATE
DEFAULT CONVERSIONでエラーになります。

ERROR:  function euc_jp_jis_to_utf8(integer, integer, cstring, internal, integer)
does not exist
が出てしまいます。function utf8_to_euc_jp_jis も同様です。

どうも未熟者ゆえ、なかなか先に進みません。

なにはともあれ、ご返信ありがとうございます。





pgsql-jp メーリングリストの案内