pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rural Hunter <ruralhunter@gmail.com>
To: pgsql-admin@postgresql.org
Subject: invalid byte sequence for encoding "UTF8": 0xf481 - how could this happen?
Date: Sat, 14 Apr 2012 10:04:48 +0800
Message-ID: <4F88DB40.9070609@gmail.com> (raw)

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?



view thread (29+ messages)  latest in thread

Message-ID: <4F88DB40.9070609@gmail.com>
Permalink:  ../4F88DB40.9070609@gmail.com/
Also on:    postgresql.org/message-id/4F88DB40.9070609@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ruralhunter@gmail.com
  Subject: Re: invalid byte sequence for encoding "UTF8": 0xf481 - how could this happen?
  In-Reply-To: <4F88DB40.9070609@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox