Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #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.

    #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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.