aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSQLExporter.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-11-20 03:51:18 +0100
committerMax <post@wickenrode.com>2015-11-20 03:51:18 +0100
commit5568af642c2fc738f175e0be4729fd3e1fe2263a (patch)
treef950a5093c833ee886d9d8361d0ec6d4482c5e28 /Source/SPSQLExporter.m
parentb8ff5b4209a45cfb8cc836125debc26041f7c00e (diff)
downloadsequelpro-5568af642c2fc738f175e0be4729fd3e1fe2263a.tar.gz
sequelpro-5568af642c2fc738f175e0be4729fd3e1fe2263a.tar.bz2
sequelpro-5568af642c2fc738f175e0be4729fd3e1fe2263a.zip
* move some duplicate code into it's own method
* remove some duplicate onMainThread calls * if an exporter needs a certain charset it'll have to set that itself now
Diffstat (limited to 'Source/SPSQLExporter.m')
-rw-r--r--Source/SPSQLExporter.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPSQLExporter.m b/Source/SPSQLExporter.m
index 5fcaae26..c575156d 100644
--- a/Source/SPSQLExporter.m
+++ b/Source/SPSQLExporter.m
@@ -174,6 +174,9 @@
if ([self sqlOutputIncludeUTF8BOM]) {
[metaString appendString:@"\xef\xbb\xbf"];
}
+
+ // we require utf8
+ [connection setEncoding:@"utf8"];
// Add the dump header to the dump file
[metaString appendString:@"# ************************************************************\n"];