Re: psql 7.3 encoding problems - Mailing list pgsql-general

From Joseph Shraibman
Subject Re: psql 7.3 encoding problems
Date
Msg-id 3E7A2260.7010308@selectacast.net
Whole thread Raw
List 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! :-(


pgsql-general by date:

Previous
From: Dennis Gearon
Date:
Subject: Re: don't understand something about backslashes
Next
From: Stephan Szabo
Date:
Subject: Re: don't understand something about backslashes