Closed (fixed)
Project:
getID3()
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2010 at 18:58 UTC
Updated:
29 Jan 2011 at 19:59 UTC
Not sure about posting in a right place, but,
I've found solution for encoding error of mp3 tags (id3v2 version only).
Needs to change two lines in file module.tag.id3v2.php (getid3 library) in function TextEncodingNameLookup(...):
original:
static $TextEncodingNameLookup = array(0=>'ISO-8859-5', 1=>'UTF-16', 2=>'UTF-16BE', 3=>'UTF-8', 255=>'UTF-16BE');
return (isset($TextEncodingNameLookup[$encoding]) ? $TextEncodingNameLookup[$encoding] : 'ISO-8859-5');
modified:
static $TextEncodingNameLookup = array(0=>'windows-1251', 1=>'UTF-16', 2=>'UTF-16BE', 3=>'UTF-8', 255=>'UTF-16BE');
return (isset($TextEncodingNameLookup[$encoding]) ? $TextEncodingNameLookup[$encoding] : 'windows-1251');
Have no ideas about such misadjustment...
Comments
Comment #1
vm commentedThis issue should be directed to the getid3() library support channels @ http://sourceforge.net/projects/getid3/support
the maintainers of the getid3() module for drupal cannot make changed to the getid3() library. They would have to be made by the mainatiners of the getid3() library.