Re: Character encoding in database dumps

From: Lynna Landstreet <lynna(at)gallery44(dot)org>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Character encoding in database dumps
Date: 2004-06-17 17:32:10
Message-ID: BCF74DD9.13E9%lynna@gallery44.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

on 6/11/04 3:33 PM, Bruno Wolff III at bruno(at)wolff(dot)to wrote:

>> Major headache, though. I'm hoping as things evolve, Unicode support will be
>> built into more programs including those where it's currently not thought
>> necessary like FTP programs. People need to learn that ASCII is *not*
>> necessarily the correct format for all text files...
>
> The ascii mode in ftp is for files that need to be converted to or from
> using LF to end lines from or to using CRLF to end lines. Normally you want
> to do binary transfers.

I'm used to having to use ASCII on anything remotely CGI-related because
normally if I do binary transfers for any sort of CGI file it breaks the
script. But maybe that is the LF issue - I know MacOS, Windows and UNIX all
use different sorts of line returns and since CGIs are usually running on
UNIX systems, Mac or Windows line returns will mess everything up. I don't
know if PHP scripts are as sensitive...

But the bigger problem is that it seems like these days most FTP programs -
as well as browsers and text editors that have some FTP functionality -
automatically set the transfer mode based on the file extension (and text
editors like BBEdit *only* have ASCII transfer mode, presumably on the basis
that, hey, it's text, and text *always* means ASCII, right?). Some will
allow you to override that, some won't. That's why I had to change the
extension on my text data files and database dumps in order for a binary
transfer to even be possible.

It's really annoying - I hate software that thinks it knows what I'm trying
to do better than I do.

Lynna

--
Resource Centre Database Coordinator
Gallery 44
www.gallery44.org

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Pradeepkumar, Pyatalo (IE10) 2004-06-18 06:42:11 Help with returning affected rows from a function
Previous Message ghaverla 2004-06-16 23:25:30 libpq.so