pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kubilay Osman Erdem <erdemkubilay@gmx.net>
To: pgsql-jdbc@postgresql.org
Date: Wed, 10 Mar 2004 12:21:53 +0100 (MET)
Message-ID: <26732.1078917713@www66.gmx.net> (raw)

I installed PG 7.3.4 and created DB with encoding “LATIN10”  . I tried to
import Flat-File  with Copy Command 
 

String  delimeter =";";

String  FILEPATH ="/home/kerdem/upstream/LIQ.txt";

String pgcopy ="copy public.liq_import from '"+FILEPATH+"' with delimiter
'"+delimeter+"'  NULL AS '' "; 

         pstmt = con.prepareStatement(pgcopy); 

                        pstmt.executeUpdate();  

                        pstmt.close();

 

I am getting  

 

WARNING: copy: line 2, UtfToLocal: could not convert UTF-8 (0xe47469).
Ignored 
WARNING: copy: line 7, UtfToLocal: could not convert UTF-8 (0xf66765).
Ignored 
WARNING: copy: line 7, UtfToLocal: could not convert UTF-8 (0xe4676e).
Ignored 
WARNING: copy: line 8, UtfToLocal: could not convert UTF-8 (0xe4747a).
Ignored 
WARNING: copy: line 12, UtfToLocal: could not convert UTF-8 (0xc472).
Ignored 
WARNING: copy: line 13, UtfToLocal: could not convert UTF-8 (0xe4727a).
Ignored 
....... 
.... 
..

I cannot import special letter like (ä,ß,ü,ö). 


But  wenn I use same command  from psql console in DB  I can import all of
the special letter,

 

  copy public.liq_import from '/home/kerdem/upstream/LIQ.txt' delimiter ';' 
NULL as '' ;

 

I would appreciate any help.

 


-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz




Message-ID: <26732.1078917713@www66.gmx.net>
Permalink:  ../26732.1078917713@www66.gmx.net/
Also on:    postgresql.org/message-id/26732.1078917713@www66.gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: erdemkubilay@gmx.net
  Subject: Re: 
  In-Reply-To: <26732.1078917713@www66.gmx.net>
  References: <26732.1078917713@www66.gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox