Localization

The place for "I can't figure out how to..." questions.

Localization

Postby kos » Tue Sep 01, 2009 3:12 pm

I am working on a project that needs to extract ID3 tags from songs submitted by users. I have no problems installing the getID3 and it works good for English character set. However I am not in control of what users are submitting to me. It could be ID3v2 ID3v1 UTF-8 local character set.

Any recommandation how I should approach this?

The best way I see so far is to analyze character set accepted by browser, but this way I will need to change getID3 source code for each request, which doesn't sound good.

I am posting mp3 file with russian charcter set that wasn't properly identified by demo.php but shows properly in iTunes on Mac Os
Attachments
?????? ?????? 6.png
?????? ?????? 6.png (40.38 KiB) Viewed 2676 times
?????? ?????? 5.png
?????? ?????? 5.png (8.5 KiB) Viewed 2839 times
?????? ?????? 3.png
iTunes
?????? ?????? 3.png (12.28 KiB) Viewed 2672 times
kos
User
 
Posts: 2
Joined: Tue Sep 01, 2009 2:58 pm

Re: Localization

Postby James Heinrich » Tue Sep 01, 2009 4:03 pm

getID3 should work with pretty much any character set, assuming the file was tagged properly. Can you send a sample file (or link to) to info@getid3.org for analysis, please?
James Heinrich
getID3() v1 developer
 
Posts: 1209
Joined: Fri May 04, 2001 11:00 am
Location: London, ON, Canada

Re: Localization

Postby kos » Tue Sep 01, 2009 11:29 pm

Sent it.
kos
User
 
Posts: 2
Joined: Tue Sep 01, 2009 2:58 pm

Re: Localization

Postby Globulopolis » Mon Oct 05, 2009 4:34 am

And what about this question? Problem solved or not?
Globulopolis
User
 
Posts: 1
Joined: Mon Oct 05, 2009 4:29 am

Re: Localization

Postby ecolora » Fri May 20, 2011 9:30 am

correct the getid3.php file:

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

   var $encoding_id3v1  = 'cp1251';   // Should always be 'ISO-8859-1', but some tags may be written in other encodings such as 'EUC-CN'
ecolora
User
 
Posts: 6
Joined: Fri May 20, 2011 9:29 am


Return to Support 1.x

Who is online

Users browsing this forum: No registered users and 1 guest

cron