diff options
author | Max <post@wickenrode.com> | 2015-11-15 18:10:26 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-11-15 18:10:26 +0100 |
commit | 8d435dbfd1aaf02a91218aa9badd8c1f71fb2a41 (patch) | |
tree | 3d6f80219010e7490727be109dda45f7509f2c31 | |
parent | a23e7b66395357ada37a1e6a8c386ce49b58a611 (diff) | |
download | sequelpro-8d435dbfd1aaf02a91218aa9badd8c1f71fb2a41.tar.gz sequelpro-8d435dbfd1aaf02a91218aa9badd8c1f71fb2a41.tar.bz2 sequelpro-8d435dbfd1aaf02a91218aa9badd8c1f71fb2a41.zip |
Add XML encoding header
-rw-r--r-- | Source/SPExportFileUtilities.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPExportFileUtilities.m b/Source/SPExportFileUtilities.m index 0cecad91..b3a6cc3c 100644 --- a/Source/SPExportFileUtilities.m +++ b/Source/SPExportFileUtilities.m @@ -102,7 +102,7 @@ SPExportErrorChoice; { NSMutableString *header = [NSMutableString string]; - [header setString:@"<?xml version=\"1.0\"?>\n\n"]; + [header setString:@"<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n\n"]; [header appendString:@"<!--\n-\n"]; [header appendString:@"- Sequel Pro XML dump\n"]; [header appendFormat:@"- %@ %@\n-\n", NSLocalizedString(@"Version", @"export header version label"), [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]]; @@ -129,7 +129,7 @@ SPExportErrorChoice; [header appendFormat:@"<%@>\n\n", [[tableDocumentInstance database] HTMLEscapeString]]; } - [file writeData:[header dataUsingEncoding:NSUTF8StringEncoding]]; + [file writeData:[header dataUsingEncoding:NSUTF8StringEncoding]]; } /** |