Re: Change server encoding after the fact

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Cody Caughlan <toolbag(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Change server encoding after the fact
Date: 2011-09-30 19:43:00
Message-ID: CAOR=d=0EDO8SvC=MAoLFZTDCOjwV-e=bNW6Y3hh-Azyhuh4A_Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Sep 30, 2011 at 1:41 PM, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> wrote:
> On Fri, Sep 30, 2011 at 1:39 PM, Cody Caughlan <toolbag(at)gmail(dot)com> wrote:
>> Its a Rails app and I do have:
>>   encoding: utf8
>
>
> Hmmm, if you try this does it work (mostly)?
>
> iconv -f utf-8 -t utf-8 -c < infile > outfile

If that doesn't work try:

iconv -f utf-8 -t utf-8//IGNORE -c < infile > outfile

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Cody Caughlan 2011-09-30 19:45:12 Re: Change server encoding after the fact
Previous Message Scott Marlowe 2011-09-30 19:41:47 Re: Change server encoding after the fact