Wolfram Kriesing wrote:
attached please find a patch, which fixes the following problems that
i had using the File_CSV::write-method:
- use of associative arrays
Ok
- escape the <quote> character (by doubling it)
Well, time ago someone wrote that to escape <quote>'s should be used ^
or \ according to a not very official standar in OpenText (what I
remember quickly from that post). We need to add a new conf param
$conf['escape_quote_char'] instead of doubling it IMHO.
if u say there is no real spec, then we should go this way i think
- replace the <crlf> character by a space,
so it doesnt screw up the CSV file
Why it screw up the CSV file? At least the class is enough smart for
reading multilined entries, don't others?
because the CSV file contains one data-row on one line, if i am not wrong. at least all the programs that i imported the resulting CSV file to expected a new data set on a new line!
to prevent from starting a new data-row up on every <crlf> that appears in the source data they need to replaced, or am i wrong?
i imported the file into:
- the KDE-CSV tool (dont know the name)
- OpenOffice 1.0
- MS Excel
and they all took a new line as a new data set, so i guess that's kinda standard :-)
i hope the patch is fine, it works well for me
Sorry if I'm too slow these days. Next week I'll hopefully be on
hollidays again and will attend all my Pear TODO hash :-)
enjoy them :-) (i guess they r already over, so i hope u have enjoyed them)
--
Wolfram
... translating template system ...
http://sourceforge.net/projects/simpletpl
... authentication system ....
http://sf.net/projects/auth