<html><div style='background-color:'><DIV class=RTE>
<P>I update manually&nbsp;the perl script to add the charset parameter.</P>
<P>And yes I already have the dump file ;-p<BR><BR></P><BR><BR><BR>&gt;From: strk@refractions.net<BR>&gt;Reply-To: PostGIS Users Discussion &lt;postgis-users@postgis.refractions.net&gt;<BR>&gt;To: postgis-users@postgis.refractions.net<BR>&gt;Subject: Re: [postgis-users] postgis_restore.pl lost charset information<BR>&gt;Date: Thu, 26 May 2005 22:25:12 +0200<BR>&gt;<BR>&gt; &gt;From 1.0.1 CHANGES file:<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - NEW support for custom createdb options in postgis_restore.pl<BR>&gt;<BR>&gt;Basically you pass createdb option last.<BR>&gt;A no-args invocation of it shows usage.<BR>&gt;I hope you still have your dump around.<BR>&gt;<BR>&gt;--strk;<BR>&gt;<BR>&gt;On Thu, May 26, 2005 at 12:05:47PM +0200, Xavier Vanderstukken wrote:<BR>&gt; &gt; My original database was in latin1 encoding.<BR>&gt; &gt;<BR>&gt; &gt; I follow the procedure to 
dump and then restore the data in Postgis 1.0.0.<BR>&gt; &gt;<BR>&gt; &gt; (postgis_restore.pl lwpostgis.sql roads roads.dump)<BR>&gt; &gt;<BR>&gt; &gt; But the created database is in SQL_ASCII charset and I receive error in my<BR>&gt; &gt; application using jdbc to retrieve data :<BR>&gt; &gt;<BR>&gt; &gt; org.postgresql.util.PSQLException: Invalid character data was found.&nbsp;&nbsp;This<BR>&gt; &gt; is most likely caused by stored data containing characters that are invalid<BR>&gt; &gt; for the character set the database was created in.&nbsp;&nbsp;The most common example<BR>&gt; &gt; of this is storing 8bit data in a SQL_ASCII database.<BR>&gt; &gt;<BR>&gt; &gt; How can I change the charset of the created database before the import<BR>&gt; &gt; procedure?<BR>&gt; &gt;<BR>&gt; &gt; _________________________________________________________________<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; 
_______________________________________________<BR>&gt; &gt; postgis-users mailing list<BR>&gt; &gt; postgis-users@postgis.refractions.net<BR>&gt; &gt; http://postgis.refractions.net/mailman/listinfo/postgis-users<BR>&gt;_______________________________________________<BR>&gt;postgis-users mailing list<BR>&gt;postgis-users@postgis.refractions.net<BR>&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users<BR></DIV></div><br clear=all><hr>  </html>