Re: about encoding

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "superman0920" <superman0920(at)gmail(dot)com>, "pgsql-admin" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: about encoding
Date: 2012-03-29 14:37:12
Message-ID: 4F742D48020000250004692A@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

superman0920 <superman0920(at)gmail(dot)com> wrote:

> i want to insert a report to postgresql,the report contain
> something Chinese characters and the postgresql is utf-8.
>
> the response from db is this:
> ERROR: invalid byte sequence for encoding "UTF8": 0xb1

That's not a valid byte sequence for a character under the UTF8
character encoding scheme. You said that PostgreSQL is using utf-8,
but what encoding is used for the report? Is your client connecting
using the character encoding scheme used by the report?

-Kevin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message amador alvarez 2012-03-30 00:10:11 custom conflict resolution information request
Previous Message Bernhard Schrader 2012-03-29 13:24:18 Re: pg_database_size() and actual disk space usage