enable new character set detector

This commit is contained in:
Luke Pulverenti 2015-01-11 21:12:47 -05:00
parent 9edca4586a
commit b6f7f0273a
1 changed files with 9 additions and 9 deletions

View File

@ -700,17 +700,17 @@ namespace MediaBrowser.MediaEncoding.Subtitles
/// <returns>System.String.</returns> /// <returns>System.String.</returns>
public string GetSubtitleFileCharacterSet(string path, string language) public string GetSubtitleFileCharacterSet(string path, string language)
{ {
//var charset = DetectCharset(path); var charset = DetectCharset(path);
//if (!string.IsNullOrWhiteSpace(charset)) if (!string.IsNullOrWhiteSpace(charset))
//{ {
// if (string.Equals(charset, "utf-8", StringComparison.OrdinalIgnoreCase)) if (string.Equals(charset, "utf-8", StringComparison.OrdinalIgnoreCase))
// { {
// return null; return null;
// } }
// return charset; return charset;
//} }
if (GetFileEncoding(path).Equals(Encoding.UTF8)) if (GetFileEncoding(path).Equals(Encoding.UTF8))
{ {