Fix 'missing ending character when utf16 used' by @parzibyte'

This commit is contained in:
wapmorgan 2018-11-01 22:59:06 +03:00
parent 0d5a492d28
commit 9d5d136e1b

View File

@ -649,6 +649,6 @@ class Mp3Info {
if ($data['encoding'] == 0x00) # ISO-8859-1
return mb_convert_encoding($data['information'], 'utf-8', 'iso-8859-1');
else # utf-16
return mb_convert_encoding($data['information'], 'utf-8', 'utf-16');
return mb_convert_encoding($data['information']."\00", 'utf-8', 'utf-16');
}
}