[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-users
Subject:    Re: [postgis-users] converting to postgis
From:       "Paragon Corporation" <lr () pcorp ! us>
Date:       2011-04-29 10:24:16
Message-ID: 1BFFB4ACD4754116869FD11E90C3BFBB () H
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Farouk,
 
On the GUI loader (and also the -W switch of command line loader), there is a button \
that says -- Options  
As shown in this article
 
http://www.postgresonline.com/journal/archives/145-PgAdmin-III-Plug-in-Registration-PostGIS-Shapefile-and-DBF-Loader.html
  
Click it and change the UTF-8 to LATIN1  and see if that fixes your issue.
 
 
Leo
http://www.postgis.us
 


  _____  

From: postgis-users-bounces@postgis.refractions.net \
                [mailto:postgis-users-bounces@postgis.refractions.net] On Behalf Of \
                farouk azzouhri
Sent: Friday, April 29, 2011 4:33 AM
To: postgis-users@postgis.refractions.net
Subject: [postgis-users] converting to postgis


Hello,
I converted an Access database (contains two fields X and Y) in a .shp file it's ok, \
but when I wanted to convert the .shp into a postgis database ( using the \
shp2pgsql-gui.exe ) it gives me the following message:

Unable to convert field name to UTF-8 (iconv reports "Illegal byte sequence"). \
Current encoding is "UTF-8". Try "latin1 " (Western European), One Of The gold values \
​​at http://www.postgresql.org/docs/current/static/multibyte.html Described. \
Shapefile import failed.

how I'm going to do ??


[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7601.17573"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=951331710-29042011><FONT color=#0000ff 
size=2 face=Arial>Farouk,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=951331710-29042011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=951331710-29042011><FONT color=#0000ff 
size=2 face=Arial>On the GUI loader (and also the -W switch of command line 
loader), there is a button that says -- Options</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=951331710-29042011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=951331710-29042011><FONT color=#0000ff 
size=2 face=Arial>As shown in this article</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=951331710-29042011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=951331710-29042011><FONT color=#0000ff 
size=2 face=Arial><A 
href="http://www.postgresonline.com/journal/archives/145-PgAdmin-III-Plug-in-Registrat \
ion-PostGIS-Shapefile-and-DBF-Loader.html">http://www.postgresonline.com/journal/archi \
ves/145-PgAdmin-III-Plug-in-Registration-PostGIS-Shapefile-and-DBF-Loader.html</A></FONT></SPAN></DIV>
 <DIV dir=ltr align=left><SPAN class=951331710-29042011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=951331710-29042011><FONT color=#0000ff 
size=2 face=Arial>Click it and change the UTF-8 to&nbsp;LATIN1&nbsp; and see if 
that fixes your issue.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=951331710-29042011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=951331710-29042011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=951331710-29042011><FONT color=#0000ff 
size=2 face=Arial>Leo</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=951331710-29042011><FONT color=#0000ff 
size=2 face=Arial><A 
href="http://www.postgis.us">http://www.postgis.us</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=951331710-29042011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV><FONT color=#0000ff size=2 
face=Arial></FONT><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> 
postgis-users-bounces@postgis.refractions.net 
[mailto:postgis-users-bounces@postgis.refractions.net] <B>On Behalf Of 
</B>farouk azzouhri<BR><B>Sent:</B> Friday, April 29, 2011 4:33 AM<BR><B>To:</B> 
postgis-users@postgis.refractions.net<BR><B>Subject:</B> [postgis-users] 
converting to postgis<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr><SPAN id=result_box lang=en><SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">Hello</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">,</SPAN><BR><SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">I</SPAN> <SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">converted</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">an</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">Access</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">database</SPAN> 
<SPAN class="hps atn" 
title="Cliquer ici pour voir d'autres traductions">(</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">contains</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">two fields</SPAN> 
<SPAN class=hps title="Cliquer ici pour voir d'autres traductions">X</SPAN> 
<SPAN class=hps title="Cliquer ici pour voir d'autres traductions">and 
Y</SPAN><SPAN title="Cliquer ici pour voir d'autres traductions">)</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">in</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">a</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions"></SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">.</SPAN><SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">shp</SPAN> file it's ok<SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions"></SPAN><SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">,</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">but when</SPAN> 
<SPAN class=hps title="Cliquer ici pour voir d'autres traductions">I</SPAN> 
<SPAN class=hps title="Cliquer ici pour voir d'autres traductions">wanted 
to</SPAN> <SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">convert</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">the </SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">.</SPAN><SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">shp</SPAN> <SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">into</SPAN> <SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">a</SPAN> <SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">postgis</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions"></SPAN></SPAN><SPAN 
id=result_box lang=en><SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">database </SPAN></SPAN><SPAN 
id=result_box lang=en><SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">( using the shp2pgsql-gui.exe 
)</SPAN> <SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">it</SPAN> <SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">gives me</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">the</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">following</SPAN> 
<SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">message</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">:</SPAN><BR><BR><SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">Unable</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">to</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">convert</SPAN> 
<SPAN class=hps title="Cliquer ici pour voir d'autres traductions">field</SPAN> 
<SPAN class=hps title="Cliquer ici pour voir d'autres traductions">name</SPAN> 
<SPAN class=hps title="Cliquer ici pour voir d'autres traductions">to</SPAN> 
<SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">UTF</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">-8</SPAN> <SPAN 
class="hps atn" title="Cliquer ici pour voir d'autres traductions">(</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">iconv</SPAN> <SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">reports</SPAN> <SPAN 
class="hps atn" title="Cliquer ici pour voir d'autres traductions">"</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">Illegal</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">byte</SPAN> <SPAN 
class=hps 
title="Cliquer ici pour voir d'autres traductions">sequence</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">"</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">)</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">.</SPAN> <SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">Current</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">encoding</SPAN> 
<SPAN class="hps atn" title="Cliquer ici pour voir d'autres traductions">is 
"</SPAN><SPAN title="Cliquer ici pour voir d'autres traductions">UTF</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">-8</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">".</SPAN> <SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">Try</SPAN> <SPAN 
class="hps atn" title="Cliquer ici pour voir d'autres traductions">"</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">latin1 "</SPAN> <SPAN 
class="hps atn" title="Cliquer ici pour voir d'autres traductions">(</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">Western</SPAN> <SPAN 
class=hps 
title="Cliquer ici pour voir d'autres traductions">European)</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">,</SPAN> <SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">One Of The</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">gold</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">values</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">​​at</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions"><A 
href="http://www.postgresql.org/docs/current/static/multibyte.html">http://www.postgresql.org/docs/current/static/multibyte.html</A></SPAN> \
 <SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">Described</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">.</SPAN><BR><SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">Shapefile</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">import</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">failed</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">.<BR><BR></SPAN></SPAN><SPAN 
id=result_box lang=en class=short_text><SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">how</SPAN> <SPAN class=hps 
title="Cliquer ici pour voir d'autres traductions">I</SPAN><SPAN 
title="Cliquer ici pour voir d'autres traductions">'m going</SPAN> <SPAN 
class=hps title="Cliquer ici pour voir d'autres traductions">to do 
??</SPAN></SPAN><BR></DIV></BODY></HTML>



_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic