Hi,
I'm wondering if anyone has a good method of converting the line endings in a file read in with fileload from a Unix directory (LFs) to Windows line endings (CRLF), so that when the contents of the file are sent back to the client web browser for the user to download into their Windows downloads folder, the line endings are correct for Windows.
I've been looking at $encode and characters sets to see if there was anything specifically for this purpose but haven't found anything so far.
In the absence of that, I guess $replace will do the job, providing I can specify those characters. There seems to be an undocumented $tometa function which may do the job but if anyone knows anything that is documented, that would seem to be a safer option.
Many thanks,
Rupert Killik
------------------------------
Rupert Killik
Senior Software Engineer
Rocket Forum Shared Account
------------------------------