aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/base/UFiles.pas4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/base/UFiles.pas b/src/base/UFiles.pas
index 5a258e3e..1a7ca8f8 100644
--- a/src/base/UFiles.pas
+++ b/src/base/UFiles.pas
@@ -131,7 +131,9 @@ begin
if (Song.Encoding = encUTF8) then
SongFile.WriteString(UTF8_BOM);
- SongFile.WriteLine('#ENCODING:' + EncodingName(Song.Encoding));
+ // do not save "auto" encoding tag
+ if (Song.Encoding <> encAuto) then
+ SongFile.WriteLine('#ENCODING:' + EncodingName(Song.Encoding));
SongFile.WriteLine('#TITLE:' + EncodeToken(Song.Title));
SongFile.WriteLine('#ARTIST:' + EncodeToken(Song.Artist));