more iconv...

What features would you like to see in future versions of getID3() ?
Post Reply
Vince

more iconv...

Post by Vince » Thu Feb 19, 2004 12:58 am

Hey,

damn iconv message is anoying...
Can't ya check to see if iconv is installed: is_function(iconv) : or something like that and if it returns false, put something in the ['error'] and continue to get the filesize,type etc...

if thats possible that would be REALLY! helpful.
Thanks

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Thu Feb 19, 2004 1:27 am

You can do that yourself. Just enable option_no_iconv before running analyze().

Guest

Post by Guest » Thu Feb 19, 2004 2:45 am

no_iconv is already set to true in getid3.php.

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Thu Feb 19, 2004 1:15 pm

So what iconv message are you talking about?

Guest

Post by Guest » Fri Feb 20, 2004 2:09 pm

even though no_iconv is set to true is still gives me the <unwanted> error message. something like: PHP does not support iconv or something like that and the script exits.

It does this on some mp3 files.

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

Post by James Heinrich » Fri Feb 20, 2004 2:20 pm

If $option_no_iconv is set to true, you should not get any error message. Please copy-paste the exact error message you're receiving.

Guest

Post by Guest » Sat Feb 28, 2004 7:03 pm

...need an iconv file first, gimme a few days i'll try find one.

Vince

Post by Vince » Thu Mar 04, 2004 5:43 am

here ya go: PHP does not have iconv() support - cannot convert from UTF-16LE to ISO-8859-1 and that was on a midi file and it couldn't of gave me it at a better time. I was in the middle of adding 800 midi files and converting 19mb worth of images into jpg and now because of this [unfortunate] error i'm gonna have to start 2 days work again... just a little pissed off at the moment

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Thu Mar 04, 2004 6:36 am

The ASF/WMA module is the only module to use UTF-16LE (according to a Find in Files). Maybe your midi file is wrapped in an ASF container?

From getid3.php - lines 43-44:
var $option_no_iconv = false;
// Will allow getID3() to run in a limited manner with only
// ISO-8859-1 and UTF-8 text encoding if iconv() functions are unavailable

If a PHP installation lacks iconv support, it cannot return correct output for UTF-16LE encoded strings. Rather than returning incorrect information, it bails out. I believe this is correct behaviour. If you want it to behave different, make a Search i Files for "PHP does not have iconv() support - cannot convert from" and change the code to your desire.

Guest

Post by Guest » Thu Mar 04, 2004 2:31 pm

will do, cheers m8

Post Reply