Clone wiki

fix-strings / Home


fix-strings is a tool tp correct the encoding of .strings files, which are used in the localization process of Mac OS X applications and are required to be in UTF-16 encoding. This script uses chardet to attempt to guess what encoding the .strings file is in and convert it to UTF-16LE.


Right now things are pretty barebones, there are no command line options other than which directory to search, and there are no unit tests.

Use at your own risk!


I hope to add a much nicer command line UI, including interactively approving detected encodings, at some point. I'd also love to add some documentation and unit tests (but not ones testing chardet, it's got plenty).