Re: psql 7.3 encoding problems

From: Joseph Shraibman <jks(at)selectacast(dot)net>
To: Rasmus <rresena(dot)remove(dot)this(at)hotmail(dot)com>
Subject: Re: psql 7.3 encoding problems
Date: 2003-03-20 20:19:44
Message-ID: 3E7A2260.7010308@selectacast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Try using \e to set the client encoding.

Rasmus wrote:
> An example of the problem:
>
> 1. Create a table directly in psql:
> create table tmp(a int);
>
> 2. Write this directly into psql:
> CREATE VIEW tmpview AS SELECT T.a FROM tmp T WHERE T.a > 100;
>
> Notice that this works fine.
>
> 3. Make a ISO-8859 text file and paste exactly the same text into it:
> CREATE VIEW tmpview AS SELECT T.a FROM tmp T WHERE T.a > 100;
>
> 4. Do:
> \i <the file>
>
> Notice that psql now gives an error:
> psql:/tmp/tmp.sql:1: ERROR: parser: parse error at or near "t"
>
> Damn! :-(

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2003-03-20 20:21:24 Re: don't understand something about backslashes
Previous Message Darko Prenosil 2003-03-20 20:10:04 Re: Handling Blobs with libpq