How to convert Big5 to UTF8 - Mailing list pgsql-general

From Alex CS Huang
Subject How to convert Big5 to UTF8
Date
Msg-id 1137722200.924.11.camel@alex
Whole thread Raw
Responses Re: How to convert Big5 to UTF8  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
Hi, All,
  I create a database which encoding is UTF8, and create a table test
create table test ( name varchar);
  I insert a data '\244\350' encoding is Big5, I wish translate them to
UTF8, so I use
  insert into test values ('convert('\244\350' using big5_to_utf_8));
  I got an error:
  ERROR:  invalid byte sequence for encoding "UNICODE": 0xe8;

  How could I do for this problem? any ideas.

Alex CS Huang




pgsql-general by date:

Previous
From: Rich Shepard
Date:
Subject: Re: Upgrade Problem: 7.4.3 -> 8.1.2
Next
From: Rodrigo Gonzalez
Date:
Subject: Re: Upgrade Problem: 7.4.3 -> 8.1.2