Page 1 of 1

more iconv...

Posted: Thu Feb 19, 2004 12:58 am
by Vince
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

Posted: Thu Feb 19, 2004 1:27 am
by Allan Hansen
You can do that yourself. Just enable option_no_iconv before running analyze().

Posted: Thu Feb 19, 2004 2:45 am
by Guest
no_iconv is already set to true in getid3.php.

Posted: Thu Feb 19, 2004 1:15 pm
by Allan Hansen
So what iconv message are you talking about?

Posted: Fri Feb 20, 2004 2:09 pm
by Guest
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.

Posted: Fri Feb 20, 2004 2:20 pm
by James Heinrich
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.

Posted: Sat Feb 28, 2004 7:03 pm
by Guest
...need an iconv file first, gimme a few days i'll try find one.

Posted: Thu Mar 04, 2004 5:43 am
by Vince
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

Posted: Thu Mar 04, 2004 6:36 am
by Allan Hansen
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.

Posted: Thu Mar 04, 2004 2:31 pm
by Guest
will do, cheers m8