Skip to content

Building IT

Making Sense of Information Technology

Menu
  • About
  • Archives
  • Communities
  • Contact Me
Menu

Converting UTF-16 to ASCII Format Text Files

Posted on November 27, 2018February 14, 2019 by Rudy Amid

For those dealing with Windows applications, sometimes the app writes logs with UTF-16 character encoding.  This is the case with Titan-FTP (commercial) software that writes the logs in that format.  Using cygwin or Linux grep command to search through the file will not return any result!  When using vi to examine the file, the escape characters doesn’t show up. The dos2unix command will not strip them, neither.

Fortunately, there is an easy way out. The utility iconv will help convert the file to make it searchable (read: Useful) again.

iconv -c -f utf-16 -t ascii file.log > newfile.log


Leave a Reply

Your email address will not be published. Required fields are marked *

Rudy Amid - IT Professional - Specializing in Linux and Windows Support with working knowledge of networking and web apps integration
Welcome to my blog where I focus on building IT education and discussion. I specialize in supporting Linux & Windows Servers and Desktops, while performing complex systems integration and provide excellent customer service.
©2026 Building IT | Design: Newspaperly WordPress Theme