Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add XML encoding header
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+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]]; |
|
|
} |
|
|
|
|
|
/** |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.