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:
Ansgar Becker
2009-12-08 23:51:43 +00:00
parent 1c69941f11
commit a3aae38d2e
3 changed files with 5 additions and 28 deletions

View File

@ -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