nst/objc_strings — Issue #1: Can this be made to work with utf-16 files?
Author: creednmd
Created: 2011-12-30 17:09:12+00:00
State: open

Hi. Great script.

However, I’m using it in conjunction with this script—https://github.com/joaomoreno/Green-Apples/blob/master/localize.py—which defaults to utf-16, which is causing issues.

Is there any way of modifying this script so that it handles utf-16 rather than utf-8?

(Especially as Apple itself recommends localisation string files be in utf-16: http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPInternational/Articles/StringsFiles.html)

I would have a go myself, but my Python is—not to put too fine a point on it—pretty bad. The use of white space for syntax did my head in.

Cheers

Andy W