Copy link to clipboard
Copied
I have just installed CF9 on a Windows sever and I need the default line separator to be a CRLF (CHR 13 then 10).
The JVM running CF9 has the default line separator set as CR (CHR 13). Which I find odd considering the default on windows should be CRLF.
I have searched and searched and can find nothing. I know the JVM command line should look something like: "-Dline.separator=". The only problem being I cannot work out for the life of me what should follow the equals sign.
I am sure I can't be the first person needing todo this. I would appreciate any help you can give me.
Cheers
Copy link to clipboard
Copied
If I were to guess I think you need "-Dline.separator=\r\n". Try this on a development machine first. And let us know if it works
Copy link to clipboard
Copied
Thanks for the reply Jochem.
Unfortunately no dice. I was pretty sure I tried that, but I went ahead and tried the following again:
-Dline.separator=\r\n
-Dline.separator="\r\n"
-Dline.separator=\\r\\n
-Dline.separator="\\r\\n"
None of these variations work. Either the literal string "\r\n" is used to seperate lines, or I get a Jrun applet error trying to run and cf page.
So you understand how I am testing these. I am editing the jvm.config. Restarting the cf service. Going to "Java and JVM" under system settings and hitting submit changes, so that the jvm.config is recreated using the new line separator.
But if you have any ideas I am all ears.
Thanks