Skip to content

Commit

Permalink
Add "-utf8" generation option to make it easier to store your source …
Browse files Browse the repository at this point in the history
…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.)
  • Loading branch information
Dan Wood committed Oct 7, 2012
1 parent 6ea48fb commit c7380ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Demo/Source/main.m
Expand Up @@ -135,6 +135,10 @@ int main (int argc, const char *argv[])
{
outputStringEncoding = NSUTF16BigEndianStringEncoding;
}
else if (!strcmp("-utf8", argv[i]))
{
outputStringEncoding = NSUTF8StringEncoding;
}
else if (!strcmp("-macRoman", argv[i]))
{
inputStringEncoding = NSMacOSRomanStringEncoding;
Expand Down Expand Up @@ -231,6 +235,7 @@ void showUsage(void)
printf(" -q turns off multiple key/value pairs warning.\n");
printf(" -bigEndian output generated with big endian byte order.\n");
printf(" -littleEndian output generated with little endian byte order.\n");
printf(" -utf8 output generated as UTF-8 not UTF-16.\n");
printf(" -o dir place output files in 'dir'.\n\n");
printf(" -defaultTable tablename use 'tablename' instead of 'Localizable' as default table name.\n");
printf(" Please see the genstrings2(1) man page for full documentation\n");
Expand Down

0 comments on commit c7380ff

Please sign in to comment.