aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPConstants.h1
-rw-r--r--Source/SPConstants.m1
-rw-r--r--Source/TableDump.m6
3 files changed, 7 insertions, 1 deletions
diff --git a/Source/SPConstants.h b/Source/SPConstants.h
index 8043f4ba..8bf9fcff 100644
--- a/Source/SPConstants.h
+++ b/Source/SPConstants.h
@@ -125,3 +125,4 @@ extern NSString *SPQueryHistory;
extern NSString *SPDocumentTaskStartNotification;
extern NSString *SPDocumentTaskEndNotification;
extern NSString *SPDefaultFavorite;
+extern NSString *SPNoBOMforSQLdumpFile;
diff --git a/Source/SPConstants.m b/Source/SPConstants.m
index 6e990cf4..62ae7b3b 100644
--- a/Source/SPConstants.m
+++ b/Source/SPConstants.m
@@ -95,3 +95,4 @@ NSString *SPQueryHistory = @"queryHistory";
NSString *SPDocumentTaskStartNotification = @"DocumentTaskStarted";
NSString *SPDocumentTaskEndNotification = @"DocumentTaskEnded";
NSString *SPDefaultFavorite = @"DefaultFavorite";
+NSString *SPNoBOMforSQLdumpFile = @"NoBOMforSQLdumpFile";
diff --git a/Source/TableDump.m b/Source/TableDump.m
index abb2e258..99311518 100644
--- a/Source/TableDump.m
+++ b/Source/TableDump.m
@@ -1300,8 +1300,12 @@
}
}
+
+ // If NoBOMforSQLdumpFile is not set to YES write the UTF-8 Byte Order Marker
+ [metaString setString:([prefs boolForKey:SPNoBOMforSQLdumpFile]) ? @"" : @"\xef\xbb\xbf"];
+
// Add the dump header to the dump file.
- [metaString setString:@"# Sequel Pro dump\n"];
+ [metaString appendString:@"# Sequel Pro dump\n"];
[metaString appendString:[NSString stringWithFormat:@"# Version %@\n",
[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]]];
[metaString appendString:@"# http://code.google.com/p/sequel-pro\n#\n"];