I have created a tool in HTML and JavaScript here:
http://accesstoinsight.eu/tools/filegenerator.html Text can be pasted into a text area there.
One can select a text encapsulator (default: quote
") and a column delimiter (default: semicolon
;) and then separate the columns by the column delimiter.
If a column should include the column delimiter, or a line break (enter), one has to put the contents of the column inside quotes.
If one wants to use the text encapsulator (e.g.
" quote) inside a column content, that is possible by doubling it (e.g. entering "" instead of "), and putting the whole column into encapsulators (e.g.
" quotes, not doubled).
At the bottom one can enter a filename (for a zip file) and then click on "generate zip"), which will create a zip file with the file and directory structure inside.
Check marks for "include BOM" and "remove (CR) carriage return" are probably good to leave both checked.
The first is adding a few bytes to the beginning of the file to tell the operating system what the encoding is (here UTF8).
The second is replacing Windows line breaks (CRLF) with Unix line breaks (LF).
As far as I see, currently most or all of the page text files on accesstoinsight.eu (at least the ones generated from the CSCD) have the BOM at the start and Unix line breaks.