Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Setting the default line separator

Guest
Feb 04, 2010 Feb 04, 2010

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

837
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Feb 04, 2010 Feb 04, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 04, 2010 Feb 04, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources