Bad display of unicode id3 tags in iRadeo

The place for "I can't figure out how to..." questions.
Post Reply
banyay
User
Posts: 2
Joined: Thu Jul 31, 2008 8:56 pm

Bad display of unicode id3 tags in iRadeo

Post by banyay » Thu Jul 31, 2008 11:24 pm

I installed iRadeo php player using getid3 1.7.8.

It is working nicely but displays unicoded tags (made by foobar2000) in a strange way: you see the text till the first real unicode (above ascii) character only. See how it looks: http://darsan.hu/radio.html.

I have php 5 on the server, most application (apache, sql etc.) is on utf-8 with iso 8859-2 (ce), only iconv is on iso-8859-1.

What to do?

banyay
User
Posts: 2
Joined: Thu Jul 31, 2008 8:56 pm

Re: Bad display of unicode id3 tags in iRadeo

Post by banyay » Sun Aug 03, 2008 5:04 am

Ok, I found a solution.

1. I realized that in our server the iconv part was set to ISO-8859-1 (default) so I ask my admin to set to UTF-8.

iconv support enabled
iconv implementation glibc
iconv library version 2.3.6

Directive Local Value Master Value
iconv.input_encoding UTF-8 UTF-8
iconv.internal_encoding UTF-8 UTF-8
iconv.output_encoding UTF-8 UTF-8

2. In Iradeo folder there is a library of getid3. In getid3.php I set the encoding to UTF-8 from ISO-8859-1 (row 21 only):

// public: Settings
var $encoding = 'UTF-8'; // CASE SENSITIVE! - i.e. (must be supported by iconv())
// Examples: ISO-8859-1 UTF-8 UTF-16 UTF-16BE

Now it works nicely. For Chinese and similar languages perhaps should be set to UTF-16.

Because I found no description to that problem even in get1d3's forums or tutorial, it may happen that you must change other settings in getid3, but for my case (mp3 with id3v2 works good). Please inform if it is true.

Post Reply