X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/034f2c9aac98c8c5d40667f1bf047211ed8f09f0..c7f0186d62dbc870e0e1db590c0ff0f7f1c55ff9:/XMLNode.cpp diff --git a/XMLNode.cpp b/XMLNode.cpp index 8551b0f..c0d7427 100644 --- a/XMLNode.cpp +++ b/XMLNode.cpp @@ -451,13 +451,15 @@ void printXMLBlock(ResXMLTree* block) printf("=?0x%x", (int)value.data); } else if (value.dataType == Res_value::TYPE_STRING) { printf("=\"%s\"", - String8(block->getAttributeStringValue(i, &len)).string()); + ResTable::normalizeForOutput(String8(block->getAttributeStringValue(i, + &len)).string()).string()); } else { printf("=(type 0x%x)0x%x", (int)value.dataType, (int)value.data); } const char16_t* val = block->getAttributeStringValue(i, &len); if (val != NULL) { - printf(" (Raw: \"%s\")", String8(val).string()); + printf(" (Raw: \"%s\")", ResTable::normalizeForOutput(String8(val).string()). + string()); } printf("\n"); }