Permalink
Browse files

Add XML encoding header

  • Loading branch information...
dmoagx committed Nov 15, 2015
1 parent a23e7b6 commit 8d435dbfd1aaf02a91218aa9badd8c1f71fb2a41
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/SPExportFileUtilities.m
@@ -102,7 +102,7 @@ - (void)writeXMLHeaderToExportFile:(SPExportFile *)file
{
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 @@ - (void)writeXMLHeaderToExportFile:(SPExportFile *)file
[header appendFormat:@"<%@>\n\n", [[tableDocumentInstance database] HTMLEscapeString]];
}
[file writeData:[header dataUsingEncoding:NSUTF8StringEncoding]];
[file writeData:[header dataUsingEncoding:NSUTF8StringEncoding]];
}
/**

0 comments on commit 8d435db

Please sign in to comment.