Permalink
Browse files

Merge pull request #5 from karelia/master

Add -utf8 output option
  • Loading branch information...
2 parents 6ea48fb + c7380ff commit 412d8be40b4cf4b863dac485dad2d66b33ad56c0 @odrobnik odrobnik committed Oct 7, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 Demo/Source/main.m
View
@@ -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;
@@ -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");

0 comments on commit 412d8be

Please sign in to comment.