]> git.saurik.com Git - android/aapt.git/blobdiff - Main.cpp
Default to UTF8 resources when packaging with aapt
[android/aapt.git] / Main.cpp
index 0b51ad8eb9c8274f3d0c7c94d8fe37ea7efafaf3..efbb2f7511c2ab30d3e0e3e0a2c25e688dbba28c 100644 (file)
--- a/Main.cpp
+++ b/Main.cpp
@@ -118,6 +118,7 @@ void usage(void)
         "   -P  specify where to output public resource definitions\n"
         "   -S  directory in which to find resources.  Multiple directories will be scanned\n"
         "       and the first match found (left to right) will take precedence.\n"
+        "   -8  Encode string resources in UTF-8.\n"
         "   -0  specifies an additional extension for which such files will not\n"
         "       be stored compressed in the .apk.  An empty string means to not\n"
         "       compress any files at all.\n"
@@ -372,6 +373,9 @@ int main(int argc, char* const argv[])
                     bundle.setCompressionMethod(ZipEntry::kCompressStored);
                 }
                 break;
+            case '8':
+                bundle.setUTF8(true);
+                break;
             case '-':
                 if (strcmp(cp, "-min-sdk-version") == 0) {
                     argc--;