invalid byte sequence for encoding "UTF8": 0xf481 - how could this happen?

From: Rural Hunter <ruralhunter(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: invalid byte sequence for encoding "UTF8": 0xf481 - how could this happen?
Date: 2012-04-14 02:04:48
Message-ID: 4F88DB40.9070609@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

My db is in utf-8, I have a row in my table say tmp_article and I wanted
to generate ts_vector from the article content:
select to_tsvector(content) from tmp_article;
But I got this error:
ERROR: invalid byte sequence for encoding "UTF8": 0xf481

I am wondering how this could happen. I think if there was invalid UTF8
bytes in the content, it shouldn't have been able to inserted into the
tmp_article table as I sometimes see similar errors when inserting
records to tmp_article. Am I right?

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message raghu ram 2012-04-14 02:15:01 Re: invalid byte sequence for encoding "UTF8": 0xf481 - how could this happen?
Previous Message raghu ram 2012-04-13 04:47:43 Re: Changing max_connections after WAL slave configured not allowed?