Re: [GENERAL] speaks psql unicode?

2005-01-14 Thread John DeSoi
On Jan 10, 2005, at 10:20 AM, Thomas Chille wrote:
if i try to import data via SQL-Inserts (exported with pgManager) out
from an utf-8 file i get always parse errors in the first line.
After switching to ascii and using of SET client_encoding TO 'latin1'
i can import all lines, but some unicode-characters are, like
expected, damaged.
Now my question: Can psql process Unicodefiles?
Sure. Try this at the top of your file:
\encoding UNICODE
I think you could also set the ENCODING variable on the command line 
with the -v option.

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL
---(end of broadcast)---
TIP 7: don't forget to increase your free space map settings


[GENERAL] speaks psql unicode?

2005-01-14 Thread Thomas Chille
Hi,

if i try to import data via SQL-Inserts (exported with pgManager) out
from an utf-8 file i get always parse errors in the first line.

After switching to ascii and using of SET client_encoding TO 'latin1'
i can import all lines, but some unicode-characters are, like
expected, damaged.

Now my question: Can psql process Unicodefiles?

Thanks for any tipp,
thomas

---(end of broadcast)---
TIP 7: don't forget to increase your free space map settings