File encoding pre-view now removes binary zeros (so the rest of the subtitle after a binary zero is shown)

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@319 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-02-07 20:07:15 +00:00
parent c3b853e91a
commit 049ef058a2

View File

@ -88,6 +88,12 @@ namespace Nikse.SubtitleEdit.Forms
_fileBuffer = new byte[length];
file.Read(_fileBuffer, 0, length);
for (int i = 0; i < length; i++)
{
if (_fileBuffer[i] == 0)
_fileBuffer[i] = 32;
}
file.Close();
file.Dispose();
}