[ADMIN] invalid byte sequence for encoding UTF8: 0xf481 - how could this happen?

2012-04-13 Thread Rural Hunter
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

Re: [ADMIN] invalid byte sequence for encoding UTF8: 0xf481 - how could this happen?

2012-04-13 Thread raghu ram
2012/4/14 Rural Hunter ruralhun...@gmail.com 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

Re: [ADMIN] invalid byte sequence for encoding UTF8: 0xf481 - how could this happen?

2012-04-13 Thread Rural Hunter
doesn't work either. db=# show client_encoding; client_encoding - UTF8 (1 row) db=# set client_encoding='LATIN1'; SET db=# show client_encoding; client_encoding - LATIN1 (1 row) db=#