Skip to content

Commit

Permalink
Add XML encoding header
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoagx committed Nov 15, 2015
1 parent a23e7b6 commit 8d435db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/SPExportFileUtilities.m
Expand Up @@ -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"]];
Expand All @@ -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]];
}

/**
Expand Down

0 comments on commit 8d435db

Please sign in to comment.