Unix Technical Forum

BUG #2400: 'Ã' considered invalid UTF-8 character

This is a discussion on BUG #2400: 'Ã' considered invalid UTF-8 character within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2400 Logged by: Yusuf Siddiqui Email address: ysiddiqui@i3.com PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:57 AM
Yusuf Siddiqui
 
Posts: n/a
Default BUG #2400: 'Ã' considered invalid UTF-8 character


The following bug has been logged online:

Bug reference: 2400
Logged by: Yusuf Siddiqui
Email address: ysiddiqui@i3.com
PostgreSQL version: 8.1
Operating system: Linux
Description: 'Æ' considered invalid UTF-8 character
Details:

The character 'Æ' is rejected as an invalid UTF-8 character.

Here are the steps used to recreate it:

create table test (text_field text);
insert into test (text_field) values ('Æ');

Returned error:
invalid UTF-8 byte sequence detected near byte 0x92

This statement also does not work:
insert into test (text_field) values ('\Æ');

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:57 AM
Tomas Zerolo
 
Posts: n/a
Default Re: BUG #2400: =?iso-8859-1?Q?'=C3?=

On Tue, Apr 18, 2006 at 11:34:53PM +0000, Yusuf Siddiqui wrote:
>
> The following bug has been logged online:
>
> Bug reference: 2400
> Logged by: Yusuf Siddiqui
> Email address: ysiddiqui@i3.com
> PostgreSQL version: 8.1
> Operating system: Linux
> Description: 'Æ' considered invalid UTF-8 character
> Details:
>
> The character 'Æ' is rejected as an invalid UTF-8 character.


Well, maybe it is :-)

> Here are the steps used to recreate it:
>
> create table test (text_field text);
> insert into test (text_field) values ('Æ');
>
> Returned error:
> invalid UTF-8 byte sequence detected near byte 0x92


[...]

I'd need to know more. I gather from your mail that you are entering the
character into psql from a console. Several factors are relevant here:

- which character encoding does your console have?
(if it is, e.g. iso-8859-x then this will be probably the culprit)
- which client encoding is set? (in psql type SHOW CLIENT_ENCODING
- which encoding is the server using (I'd guess utf-8; it doesn't need
to be the same as the client's, since it will try to convert).

HTH
-- tomás

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFERxDaBcgs9XrR2kYRAjnqAJ9ITXKQnbatHzlXBj9unY C6KA7A/ACeJoSM
1ym5t01t6ACjuFmypDv73p0=
=wHJI
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 10:57 AM
Peter Eisentraut
 
Posts: n/a
Default Re: BUG #2400: =?iso-8859-1?q?=27=C3=27_considered_invalid_UTF-8?= character

Am Mittwoch, 19. April 2006 01:34 schrieb Yusuf Siddiqui:
> The character 'Æ' is rejected as an invalid UTF-8 character.


Please show the output of

$ psql -c 'show client_encoding'
$ locale

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 10:57 AM
SunWuKung
 
Posts: n/a
Default =?iso-8859-1?q?Re:_BUG_#2400:_'=C3'_considered_invalid_UTF-8_character?=

Aren't you using EMS Postgresql Manager?
I kept getting this message for any non-standard UTF8 character that I
wanted to insert or import.
I wrote to them and they said EMS PgManager does not yet support
unicode.

Balázs

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com