realbasic-nug
[Top] [All Lists]

Re: CVS question

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: CVS question
From: Phil M <phil at mobleybros dot com>
Date: Wed, 30 Aug 2006 11:12:44 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <9AD0C297-0AD8-4FAA-B699-A14B7EE0DB00 at mobleybros dot com> <EF65AC0D-31A9-4E8E-A078-6406D0AD0A0C at great-white-software dot com>
On Aug 30, 2006, at 10:51 AM, Norman Palardy wrote:

What is the proper method of handling CVS export when there is a TEXT/BLOB column with illegal characters like Chr(9), Chr(13) and Chr(10)? Are you suppose to BASE64 encode the data, or are CVS parser suppose to be smart enough to pick all data between the quotes (assume all quotes are escaped)?

Since there's no official "standard" there are lots of things you could do.

Access exports them as is, but few CSV parsers can handle that (mine can because I needed it to) Excel does this as well.

Since those are, for me, two of the most common sources that I get CSV fils from I wrote a parser. It works differently than the built in RB one though because I cannot make it a subclass of any of the Database objects (RecordSet, DatabaesField, etc) Otherwise I'd make it work the exact same

Sorry Norman, but I don't really understand your answer. Are you referring to text data which has been BASE64 encoded, or quote- escaped string data?

And what is the proper way to escape a quote?

I am mostly concerned with exporting the data from my database into CVS. I don't really know what software the client would be using to import the data, although I would think that Excel would be pretty common.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>