pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matt Williams <matt@williams-tech.net>
To: Steve Crawford <scrawford@pinpointresearch.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: utf8 database not dumping utf8 characters
Date: Fri, 6 Apr 2012 16:10:46 -0400
Message-ID: <2F1A03239AE84E5F8217570AE41AA4C4@williams-tech.net> (raw)
In-Reply-To: <4F7F4C2E.7050007@pinpointresearch.com>
References: <5D15382C1CF943D8A7B69D102A2BCBD4@williams-tech.net>
	<4F7F4C2E.7050007@pinpointresearch.com>

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.  

--  
Matt Williams
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Friday, April 6, 2012 at 4:03 PM, Steve Crawford wrote:

> On 04/06/2012 12:55 PM, Matt Williams wrote:  
> > I have a database that is utf8 and displays utf8 values correctly in psql. When dumped, it displays the utf8 characters incorrectly. ie. ö turns into Ã
> >  
> > In the header of the dump file, I have:  
> >  
> > SET client_encoding = 'UTF8';  
> >  
> > So I'm not sure where the disconnect is?  
> >  
> > Thoughts?  
> >  
> > Thanks,  
> >  
> > --   
> > Matt Williams
> > Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
> >  
> With what are you viewing the dump file and is everything in the chain (terminal, less/vi/...) set to interpret/display that data as UTF8? You can always use a hex-dump program to see the actual bytes in the file and determine if they are what you expect for UTF8.
>  
> Cheers,
> Steve
>  

view thread (8+ messages)  latest in thread

Message-ID: <2F1A03239AE84E5F8217570AE41AA4C4@williams-tech.net>
Permalink:  ../2F1A03239AE84E5F8217570AE41AA4C4@williams-tech.net/
Also on:    postgresql.org/message-id/2F1A03239AE84E5F8217570AE41AA4C4@williams-tech.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: matt@williams-tech.net, scrawford@pinpointresearch.com
  Subject: Re: utf8 database not dumping utf8 characters
  In-Reply-To: <2F1A03239AE84E5F8217570AE41AA4C4@williams-tech.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox