[Pgcluster-general] also about PGCluster deal with Chinese question?
Sun.betty
alanxzq at yahoo.com.cn
Fri Jan 19 17:24:44 UTC 2007
Hi! everybody here:
How are you!
test PGCluster deal with chinese.
createdb using encoding EUC_CN (createdb -E EUC_CN dbname) will appear previous letter said question.
if createdb using encoding UNICODE (UTF8) won't appear chinese deal question.
createdb -E UTF8 dbname
createlang -d dbname plpgsql
this database (dbname) deal with chinese is ok, node1 and node2 rsync is fine.
but encoding is EUC_CN isn't rsync chinese correct
test need modify JDBCBench.java
from
"INSERT INTO tellers(Tid,Bid,Tbalance) VALUES (" + i + "," + i / ntellers + ",0)";
to
"INSERT INTO tellers(Tid,Bid,Tbalance,filler) VALUES (" + i + "," + i / ntellers + ",0,'壹贰叁肆伍陆柒捌玖拾')";
and compile use :
javac -encoding gb2312 JDBCBench.java
java -classpath .:./postgresql-8.1-407.jdbc2.jar JDBCBench -driver org.postgresql.Driver -url jdbc:postgresql://127.0.0.1:5432/ttc1?user=test -v -init -tpc 1 -clients 1
select * from tellers ;
Please resolve this question, Thanks very much , and look forward to pgcluster become more and more perfect.
Sincerely
--------------
Betty
---------------------------------
Mp3疯狂搜-新歌热歌高速下
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pgfoundry.org/pipermail/pgcluster-general/attachments/20070120/641fe71f/attachment.html
More information about the Pgcluster-general
mailing list