Re: invalid byte sequence for encoding

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Daniel Schuchardt <d(dot)schuchardt(at)prodat-sql(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: invalid byte sequence for encoding
Date: 2009-09-13 19:40:41
Message-ID: 1252870841.6375.4.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On sön, 2009-09-13 at 18:51 +0200, Daniel Schuchardt wrote:
> UPDATE belzeil_frei SET bz_zubez= '*', bz_zubez_rtf=
> '{\\rtf1\\ansi\\deff0{\\fonttbl{\\f0\\fnil\\fcharset0
> Arial;}}\r\n\\viewkind4\\uc1\\pard\\lang1031\\fs20 *\r\n\\par }\r\n\0'
> WHERE dbrid=295116
>
> Result : ERROR: invalid byte sequence for encoding "WIN1252": 0x00
>
> In that example i try to insert a "*" with rtf-encoding.
>
> i have the same problem with SQL_ASCII

Maybe you want to use the bytea type instead, because you appear to be
storing bytes rather than characters.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Ribe 2009-09-13 19:48:24 Re: invalid byte sequence for encoding
Previous Message Rajesh Kumar Mallah 2009-09-13 18:42:05 Re: schema proxying virtual database