Re: utf8 database not dumping utf8 characters - Mailing list pgsql-admin

From Steve Crawford
Subject Re: utf8 database not dumping utf8 characters
Date
Msg-id 4F7F6BEF.6010007@pinpointresearch.com
Whole thread Raw
In response to Re: utf8 database not dumping utf8 characters  (Matt Williams <matt@williams-tech.net>)
Responses Re: utf8 database not dumping utf8 characters  (Matt Williams <matt@williams-tech.net>)
List pgsql-admin
On 04/06/2012 01:10 PM, Matt Williams wrote:
> With that same dump file that is displaying incorrectly open in vim, I
> can paste in the utf8 character I provided as an example and it
> displays correctly.
I usually find a good first step is to run the file through something
that will give you a hex dump (i.e. xxd or similar) and so I *know* the
actual bytes in the file rather than relying on how they may be
interpreted somewhere else along the chain. Find the hex-byte(s) of your
suspect character and look it up.

Since you are in vim, it may be worth checking ":set termencoding",
":set encoding" and ":set fileencoding".

Cheers,
Steve


pgsql-admin by date:

Previous
From: Matt Williams
Date:
Subject: Re: utf8 database not dumping utf8 characters
Next
From: Matt Williams
Date:
Subject: Re: utf8 database not dumping utf8 characters