|
|||||||||||
|
[NOVICE] accented characters migraine
From: John Gunther <postgresql(at)bucksvsbytes.com>
Date: Fri Oct 12 2007 - 11:59:13 EDT
PROBLEM: Entering accented characters in psql often results in the error: invalid byte sequence for encoding "UTF8" ENVIRONMENT:
initdb defaulted to UTF-8, which I need because I want ORDER BY to sort alphabetically, not by hex code.
When I try to insert a string with an accented character, I generally
get the above error. Simple example:
template1=# insert into sorttest (test) values ('ã'); ERROR: invalid byte sequence for encoding "UTF8": 0xe32729 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".
The accented character (a-tilde) is entered from the Windows keyboard
with the ~a sequence and displays properly in psql. The problem is that
the server rejects it.
It looks like I'm caught in some interaction between putty, psql and pg.
The real problem is much more grave than just manual data entry-- I'm
trying to migrate a large existing database from another pg server with:
pg_dumpall -h nnn.nnn.nnn.nnn | psql
Any ideas? Is this just a bonehead mistake on my part? John
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
Received on Fri Oct 12 12:16:14 2007This archive was generated by hypermail 2.1.8 : Thu Jun 19 2008 - 00:03:11 EDT |
||||||||||
|
|||||||||||