Re: invalid byte sequence for encoding - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: invalid byte sequence for encoding
Date
Msg-id 1252870841.6375.4.camel@vanquo.pezone.net
Whole thread Raw
In response to invalid byte sequence for encoding  (Daniel Schuchardt <d.schuchardt@prodat-sql.de>)
Responses Re: invalid byte sequence for encoding
List 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.


pgsql-general by date:

Previous
From: Rajesh Kumar Mallah
Date:
Subject: Re: schema proxying virtual database
Next
From: Scott Ribe
Date:
Subject: Re: invalid byte sequence for encoding