How to Switch Text File Line Breaks: Mastering LF and CRLF in EmEditor

How to Switch Text File Line Breaks: Mastering LF and CRLF in EmEditor

John Lv8

How to Switch Text File Line Breaks: Mastering LF and CRLF in EmEditor

Viewing 2 posts - 1 through 2 (of 2 total)

  • Author
    Posts
  • July 17, 2009 at 8:00 pm #7479
    mak
    Member
    I want to convert UTF-16 Le (LF unix) to UTF-16 (CR+LF to windows) and UTF-8 LE to UTF-8 CR+LF can I use command line if yes what is command line i should use ?
    Or can I batch process this file in emeditor ?
    .java files – from UTF-16 Le (LF unix) to UTF-16 (CR+LF to windows)
    .rc files – from UTF-16 Le (LF unix) to UTF-16 (CR+LF to windows)
    .XML files —UTF-8 LE to UTF-8 CR+LF
    I tried many utilities and Sed commands they all are corrupting the files.
    I can do this by opeing each file in emditor and save as to windows format but this solution is not logical for 200+ files.
    thanks in advance.
    July 17, 2009 at 9:52 pm #7480
    Yutaka Emura
    Keymaster

    mak wrote:
    I want to convert UTF-16 Le (LF unix) to UTF-16 (CR+LF to windows) and UTF-8 LE to UTF-8 CR+LF can I use command line if yes what is command line i should use ?
    Or can I batch process this file in emeditor ?
    .java files – from UTF-16 Le (LF unix) to UTF-16 (CR+LF to windows)
    .rc files – from UTF-16 Le (LF unix) to UTF-16 (CR+LF to windows)
    .XML files —UTF-8 LE to UTF-8 CR+LF
    I tried many utilities and Sed commands they all are corrupting the files.
    I can do this by opeing each file in emditor and save as to windows format but this solution is not logical for 200+ files.
    thanks in advance.
    Not on version 8, but on version 9, you will see new command line options /scr /scrlf /slf available. So if you want to convert from UTF-16 (LF unix) to UTF-8 (CR+LF windows), you would use,
    emeditor.exe “org_name” /cp 65537 /cps 65001 /ss- /scrlf /sa “new_name”
    v9 alpha is available in our beta forum. I hope this will help.

  • Author
    Posts

Viewing 2 posts - 1 through 2 (of 2 total)

  • You must be logged in to reply to this topic.

Also read:

https://techidaily.com
  • Title: How to Switch Text File Line Breaks: Mastering LF and CRLF in EmEditor
  • Author: John
  • Created at : 2024-10-12 18:50:06
  • Updated at : 2024-10-14 19:20:43
  • Link: https://win-tricks.techidaily.com/how-to-switch-text-file-line-breaks-mastering-lf-and-crlf-in-emeditor/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
How to Switch Text File Line Breaks: Mastering LF and CRLF in EmEditor