pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
(no subject)
1+ messages / 1 participants
[nested] [flat]

* (no subject)
@ 2004-03-10 11:21 Kubilay Osman Erdem <erdemkubilay@gmx.net>
  0 siblings, 0 replies; 1+ messages in thread

From: Kubilay Osman Erdem @ 2004-03-10 11:21 UTC (permalink / raw)
  To: pgsql-jdbc

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




^ permalink  raw  reply  [nested|flat] 1+ messages in thread


only message in thread

Thread overview: 1+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-03-10 11:21  Kubilay Osman Erdem <erdemkubilay@gmx.net>

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