Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -utf8 output option #5

Merged
merged 1 commit into from Oct 7, 2012
Merged

Add -utf8 output option #5

merged 1 commit into from Oct 7, 2012

Conversation

danwood
Copy link
Contributor

@danwood danwood commented Oct 7, 2012

I had written a blog post about how troublesome it is to handle UTF-16 .strings files in my source tree. I've decided to store my strings files as UTF-8 to eliminate confusion with endian issues, and also so that these files can actually be diff'd in GitHub rather than appearing as binary blobs.

The final remaining step has been to somehow override genstrings' propensity to output in UTF-16. That means that I'd have to follow up with a conversion to UTF-8 so that my generated strings files (which I store in my source tree) don't get changed into UTF-16.

I've added UTF-8 output as an option to the demo "genstrings2" here, to make that step easier. Maybe others will find it useful as well. Yes, this extends the abilities of genstrings. Hopefully that is OK.

…tree .strings files in UTF-8, which is much easier to manage. (Modern Xcode will copy your .strings files into UTF-16 into the binary anyhow, so no need to store them as UTF-16.)
odrobnik added a commit that referenced this pull request Oct 7, 2012
Add -utf8 output option
@odrobnik odrobnik merged commit 412d8be into Cocoanetics:master Oct 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants