Im looking to use the text of a query and format this in such a way to allow an excel plugin on various browsers to open it and format it correctly. Ive done this before by using commas and naming the file .csv. This will not work with the current data im using as it contains commas in the data.

Is it practical to create and xls file by adding the correct codes. PC applications are out as this is a UNIX environment