mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Do not add UTF-8 BOM headers to written files, they are not needed in most cases, and break other tools from reading them, e.g. mysqldump. See http://www.heidisql.com/forum.php?t=4622
This commit is contained in:
@ -893,10 +893,10 @@ begin
|
||||
FreeAndNil(ExportStream);
|
||||
if not DirectoryExists(comboExportOutputTarget.Text) then
|
||||
ForceDirectories(comboExportOutputTarget.Text);
|
||||
ExportStream := openfs(comboExportOutputTarget.Text+'\'+GoodFileName(obj)+'.sql');
|
||||
ExportStream := TFileStream.Create(comboExportOutputTarget.Text+'\'+GoodFileName(obj)+'.sql', fmCreate or fmOpenWrite);
|
||||
end;
|
||||
if ToFile and (not Assigned(ExportStream)) then
|
||||
ExportStream := openfs(comboExportOutputTarget.Text);
|
||||
ExportStream := TFileStream.Create(comboExportOutputTarget.Text, fmCreate or fmOpenWrite);
|
||||
if ToDb or ToServer then
|
||||
ExportStream := TMemoryStream.Create;
|
||||
if (db<>ExportLastDatabase) or ToDir then begin
|
||||
|
Reference in New Issue
Block a user