Localization

The place for "I can't figure out how to..." questions.
Post Reply
kos
User
Posts: 2
Joined: Tue Sep 01, 2009 7:58 pm
Are you a spambot?: no

Localization

Post by kos » Tue Sep 01, 2009 8: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 7460 times
?????? ?????? 5.png
?????? ?????? 5.png (8.5 KiB) Viewed 7623 times
?????? ?????? 3.png
iTunes
?????? ?????? 3.png (12.28 KiB) Viewed 7456 times

James Heinrich
getID3() v1 developer
Posts: 1477
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Re: Localization

Post by James Heinrich » Tue Sep 01, 2009 9: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?

kos
User
Posts: 2
Joined: Tue Sep 01, 2009 7:58 pm
Are you a spambot?: no

Re: Localization

Post by kos » Wed Sep 02, 2009 4:29 am

Sent it.

Globulopolis
User
Posts: 1
Joined: Mon Oct 05, 2009 9:29 am
Are you a spambot?: no

Re: Localization

Post by Globulopolis » Mon Oct 05, 2009 9:34 am

And what about this question? Problem solved or not?

ecolora
User
Posts: 6
Joined: Fri May 20, 2011 2:29 pm
Are you a spambot?: no
Contact:

Re: Localization

Post by ecolora » Fri May 20, 2011 2:30 pm

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'

Post Reply