invalid byte sequence for encoding "UTF8": 0xab

From: "Grand, Mark D(dot)" <mgrand(at)emory(dot)edu>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: invalid byte sequence for encoding "UTF8": 0xab
Date: 2009-06-05 11:49:09
Message-ID: EE87606F3DC6EE40BC1551A9EEA4713901432AC12032@EXCHANGE10.Enterprise.emory.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am having a vexing problem with a script I am writing to populate reference tables in a new database.

I am running postgreSQL 8.3 with psql 8.3.7.
Psql reads this SQL statement:
INSERT INTO META_AUTH.DOMAIN_META_ASSERTION (TITLE, DESCRIPTION, META_ASSERTION)
VALUES ('Super-User Authorization',
'This allows a super-user to administer all meta-data.',
'UserID <Administer> ()');

and I get this message:
ERROR: invalid byte sequence for encoding "UTF8": 0xab
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".

It is complaining about the '<' character. I do not understand why. The database is created the commands
CREATE DATABASE mayyou
WITH OWNER=meta_auth ENCODING='UTF8';
ALTER DATABASE mayyou SET client_encoding = 'UTF8';

When I give psql the \encoding command, it replies
UTF8

Why is it complaining about this valid character code?

________________________________
This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Radcon Entec 2009-06-05 12:57:27 Re: Using a multi-valued function in a view
Previous Message Rafal Pietrak 2009-06-05 09:26:55 sequences and RULEs