commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Convert file from the UTF8 encoding used on Linux (has no "EF BB BF" byte order mark at the start) to the UTF-16 encoding used on Windows (has an "FF FE" byte order mark at the start).
Thanks to commenter: previous iconv command was the obsolete way to do it.
There are 4 alternatives - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.