in reply to Re: U-DOS to DOS file conversion
in thread U-DOS to DOS file conversion

how to detect the file format whether it is U-DOS or DOS format via perl code

Replies are listed 'Best First'.
Re^3: U-DOS to DOS file conversion
by ikegami (Patriarch) on Dec 09, 2013 at 19:08 UTC

    If you mean UTF-16le by "U-DOS", you can check for the presence of 00 bytes. Each ASCII character will be encoded in the form xx 00.