dbTalk Databases Forums  

[BUGS] BUG #2804: Incorrect encoding of comment in backup of UTF8 database

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


Discuss [BUGS] BUG #2804: Incorrect encoding of comment in backup of UTF8 database in the mailing.database.pgsql-bugs forum.



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

Default [BUGS] BUG #2804: Incorrect encoding of comment in backup of UTF8 database - 12-02-2006 , 06:46 AM







The following bug has been logged online:

Bug reference: 2804
Logged by: Marcin Waldowski
Email address: M.Waldowski (AT) sulechow (DOT) net
PostgreSQL version: 8.1.5
Operating system: Windows XP SP2 (polish version)
Description: Incorrect encoding of comment in backup of UTF8 database
Details:

When I make a backup of UTF8 database then pg_dump add some comment to
backup file:

-- Started on 2006-11-30 16:01:15 srodkowoeuropejski czas stand.

'Srodkowoeuropejski czas stand.' means in polish 'centraleuropean standard
time'. Unfortunately first letter of 'srodkowoeuropejski' is our national
letter which is similar to 's' and it is encoded incorretly in UTF8. It
makes following error during restore:

pg_restore: connecting to database for restore

pg_restore: [archiver (db)] Error while INITIALIZING:

pg_restore: [archiver (db)] could not execute query: ERROR: invalid byte
sequence for encoding "UTF8": 0x8c

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".

Command was:--

-- PostgreSQL database dump

--


-- Started on 2006-11-30 16:01:15 srodkowoeuropejski czas stand.

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #2804: Incorrect encoding of comment in backup of UTF8 database - 12-02-2006 , 10:37 AM






"Marcin Waldowski" <M.Waldowski (AT) sulechow (DOT) net> writes:
Quote:
When I make a backup of UTF8 database then pg_dump add some comment to
backup file:
-- Started on 2006-11-30 16:01:15 srodkowoeuropejski czas stand.
This has been fixed for 8.2 by the expedient of omitting the timezone
from the comment when running on Windows. However, you should take a
closer look at your locale settings --- the fact that it's coming out in
an encoding other than UTF8 says to me that you're running the database
with incompatible locale and encoding, which is going to cause other
problems.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings


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.