BAT Import Fails – Unmapped Exception bad header in block 1 record 15, header magic is not ‘ustar’ or unix-style zeros

If you hit this issue when uploading a BAT file, it’s probably because your bat files are encoded in ANSI, not UTF-8.

Yes, it is a CUCM defect:

https://quickview.cloudapps.cisco.com/quickview/bug/CSCsm00457

https://quickview.cloudapps.cisco.com/quickview/bug/CSCur99180

 

For a small number of files, you can simply use vanilla Notepad in Windows, and “Save As”, selecting a new format:

https://stackoverflow.com/questions/3710374/get-encoding-of-a-file-in-windows

 

However, when you face this with 50+ BAT files like I did, a useful script goes a long way

 

Advertisements

One thought on “BAT Import Fails – Unmapped Exception bad header in block 1 record 15, header magic is not ‘ustar’ or unix-style zeros

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.