Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tis4r-0006j9-V9 for pgsql-sql@arkaria.postgresql.org; Wed, 12 Dec 2012 19:34:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tis4q-0006Vm-U5 for pgsql-sql@arkaria.postgresql.org; Wed, 12 Dec 2012 19:34:44 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tis4p-0006Vg-Pl for pgsql-sql@postgresql.org; Wed, 12 Dec 2012 19:34:44 +0000 Received: from mail-pb0-f46.google.com ([209.85.160.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tis4o-0001Wk-3E for pgsql-sql@postgresql.org; Wed, 12 Dec 2012 19:34:42 +0000 Received: by mail-pb0-f46.google.com with SMTP id wy7so866355pbc.19 for ; Wed, 12 Dec 2012 11:34:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=lz790XXoXMgCwJTipsbUtgOzWm08xzmmVpd1ZJ3RZPA=; b=v+rnE6xP/UB9Y/vL4hbECYOvyTOhOWaszBFRYo00yWt1Ap/0AnVPlHAaf1gX19NGmt v47eFwPIL/b4gBLsn6Wz/vfen5ckRUntb4klRZ0PT0SLxb2EcvmZcYV0cGcv08ClGvlM QCcvPcBheBGoCmpMonBTfNO0ShIhqOpi4U9ba6eDfHTyyFFu5LpaK9DmOCkSXaYnmZ4g bAGBH6gs77IbovhYZOycTtz4e4+0uRbcsuPo4Nce3tdB31dWpuR3KI9xXTJqE98glVLz lctL+16VdIL6Acn4rhJziTiTW4Uy/TQaT4uAlrHmB+Soaut67Z3vHy7+Pxz8Bas7RvWA XfXw== Received: by 10.68.224.165 with SMTP id rd5mr5575215pbc.49.1355340881497; Wed, 12 Dec 2012 11:34:41 -0800 (PST) Received: from [192.168.0.118] (c-24-17-179-185.hsd1.wa.comcast.net. [24.17.179.185]) by mx.google.com with ESMTPS id qp6sm16118882pbc.25.2012.12.12.11.34.40 (version=SSLv3 cipher=OTHER); Wed, 12 Dec 2012 11:34:40 -0800 (PST) Message-ID: <50C8DC4F.1040004@gmail.com> Date: Wed, 12 Dec 2012 11:34:39 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: emilu@encs.concordia.ca CC: pgsql-sql@postgresql.org Subject: Re: Load UTF8@psql into latin1@mysql through JDBC References: <50C8BB30.3000402@encs.concordia.ca> <50C8BFCC.4060100@gmail.com> <50C8C325.3070809@encs.concordia.ca> In-Reply-To: <50C8C325.3070809@encs.concordia.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org On 12/12/2012 09:47 AM, Emi Lu wrote: >>> Is there a simple way to load UTF8 data in psql to mysql(with latin1 >>> encoding) through JDBC? >> >> This would seem to be dependent on the MySQL JDBC adapter. >> >>> From here: >> >> http://dev.mysql.com/doc/refman/5.1/en/connector-j-reference-charsets.html >> >> >> "All strings sent from the JDBC driver to the server are >> converted automatically from native Java Unicode form to >> the client character encoding, including all queries sent.... " > > This does not help. The reason I asked this is because through mybatis + > JDBC, loading data from psql@utf8 to mysql@latin1, the french character > cannot be auto-loaded. You might get an answer sooner at: https://groups.google.com/group/mybatis-user > > Thanks. > -- > Emi > > -- Adrian Klaver adrian.klaver@gmail.com -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql