BUG #5221: errors converting string to utf8

From: "DM" <dmedri(at)ciseonweb(dot)it>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5221: errors converting string to utf8
Date: 2009-12-01 11:36:08
Message-ID: 200912011136.nB1Ba8CR022772@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 5221
Logged by: DM
Email address: dmedri(at)ciseonweb(dot)it
PostgreSQL version: 8.2 / 8.4
Operating system: linux ubuntu 9.10
Description: errors converting string to utf8
Details:

I'm using 2 version of pg (8.2, 8.4).

On 8.2:

select convert('Vall\xe9e','LATIN1','UTF8');

convert this string without any kind of error.

On 8.4:

select convert('Vall\xe9e','LATIN1','UTF8');

i receive these messages:

WARNING: nonstandard use of escape in a string literal
RIGA 1: select convert('Vall\xe9e','LATIN1','UTF8');
^
HINT: Use the escape string syntax for escapes, e.g., E'\r\n'.
ERROR: invalid byte sequence for encoding "UTF8": 0xe965
HINT: This error can also happen if the byte sequence does not match the
encoding expected by the server, which is controlled by "client_encoding".

client charset: utf8
server charset: utf8

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Craig Ringer 2009-12-01 13:03:23 Re: BUG #5221: errors converting string to utf8
Previous Message Heikki Linnakangas 2009-12-01 10:21:36 Re: Assertion failure with a subtransaction and cursor