dbTalk Databases Forums  

[BUGS] Problems with UTF8 in PSQL

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] Problems with UTF8 in PSQL in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default [BUGS] Problems with UTF8 in PSQL - 07-12-2006 , 09:49 AM






Hallo,

I don't know if the problem has been reported yet, but it seems to have mor=
e=20
implications.

- Prerequisite:
o PostgreSQL 8.1.4 on i486-pc-linux-gnu, compiled by GCC cc (GCC) 4.0.4
20060507 (prerelease) (Debian 4.0.3-3)
o and psql
o A database which was created with -E UTF8
- Description:
If i log in into that database (client encoding is also in UTF8) a lot
of "\"-commands are not accepted and the error message says
"invalid byte sequence for UTF8...."

- Original output:
test=3D> \d
FEHLER: ung=FCltige Byte-Sequenz f=FCr Kodierung =BBUTF8=AB: 0xfc6d65722=
20a
test=3D> \q

Same error message is in the log file

-Implications?
There are also problems in this field, if I try to add a constraint for a
primary key from inside of another programming language with the same
error message! So it could be a problem from PostqreSQL not from psql.

HTH to find the problem
Bye
rolf

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: [BUGS] Problems with UTF8 in PSQL - 07-12-2006 , 12:11 PM






Hello,

When I experience the problem, the current Linux locale on my server is
fr_FR (AT) euro (DOT) Psql works fine if I change the current locale (by setting
the LANG shell variable) to fr_FR (AT) UTF-8 (DOT)

I would be glad if psql may work fine without changing the LANG variable
in the current session.

Regards,
Thomas


rolf a écrit :
Quote:
Hallo,

I don't know if the problem has been reported yet, but it seems to have more
implications.

- Prerequisite:
o PostgreSQL 8.1.4 on i486-pc-linux-gnu, compiled by GCC cc (GCC) 4.0.4
20060507 (prerelease) (Debian 4.0.3-3)
o and psql
o A database which was created with -E UTF8
- Description:
If i log in into that database (client encoding is also in UTF8) a lot
of "\"-commands are not accepted and the error message says
"invalid byte sequence for UTF8...."

- Original output:
test=> \d
FEHLER: ungültige Byte-Sequenz für Kodierung »UTF8«: 0xfc6d6572220a
test=> \q

Same error message is in the log file

-Implications?
There are also problems in this field, if I try to add a constraint for a
primary key from inside of another programming language with the same
error message! So it could be a problem from PostqreSQL not from psql.

HTH to find the problem
Bye
rolf

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

--

Thomas REISS
Ministère de l'Intérieur et de l'Aménagement du Territoire
SG/DSIC/SCSIC/DESP/BSTN
Tél. : 01-61-44-25-90
E-mail: thomas.reiss (AT) interieur (DOT) gouv.fr


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


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.