Skip to content
Browse files

Add "-utf8" generation option to make it easier to store your source …

…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...
1 parent 6ea48fb commit c7380ffb27f6f21059cdf827d82ad2b4e063d84d @danwood danwood committed Oct 7, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 Demo/Source/main.m
View
5 Demo/Source/main.m
@@ -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 c7380ff

Please sign in to comment.
Something went wrong with that request. Please try again.