Page 1 of 1

Codepages (Russian)

Posted: Tue Dec 19, 2006 5:23 pm
by DangerD
I'm russian speaking user and i have big music archive with russian music. But many files has different codepages.
Can you make auto determination of codepage which is used in id3?

Posted: Tue Dec 19, 2006 5:29 pm
by Allan Hansen

Your files are currupt unless they use ISO-8859-1 for ID3v1.

ID3v2 can contain cyrillic characters, but they must be written in UTF-8. Some taggers use CP1251 instead of ISO-8859-1 for ID3v2 as well. These files are currupt as well.

There are override options for both v1 and v2, but it is impossible to auto detect a charset.

Posted: Tue Dec 19, 2006 5:36 pm
by DangerD
But, how, for exlample Winamp understands it?

Posted: Tue Dec 19, 2006 9:58 pm
by Allan Hansen
Because Winamp incorrectly use the system codepage instead of the codepage specified in the format.

UTF-8/UNICODE is a rather old invention that preceeds MP3/ID3. But it doesn't work in Win95/98/ME, so most people did not use it until recently...

Posted: Tue Dec 19, 2006 10:06 pm
by DangerD
Can you make changes to make incorect using system codepage to display correct symbols? :D

Posted: Tue Dec 19, 2006 10:19 pm
by Allan Hansen
Yes. I already told you there are override options.

See getid3.php (somewhere near the top) or search this forum for "Russian" or "Chinese".

Posted: Tue Dec 19, 2006 10:27 pm
by DangerD
find this:
$getid3->encoding = 'UTF-8';

but i can change only to one codepage, this is only a part of files, other part in cp1251 for example...

Posted: Tue Dec 19, 2006 10:29 pm
by Allan Hansen
In the future, try a little harder.

By searching for "Russian", as I suggested, you find this thread: ... ht=russian