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
more iconv...
-
- getID3() v2 developer
- Posts:445
- Joined:Sun May 04, 2003 2:22 pm
- Location:Holmegaard, Denmark
-
- getID3() v2 developer
- Posts:445
- Joined:Sun May 04, 2003 2:22 pm
- Location:Holmegaard, Denmark
-
- getID3() v1 developer
- Posts:1477
- Joined:Fri May 04, 2001 4:00 pm
- Are you a spambot?:no
- Location:Northern Ontario, Canada
- Contact:
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
-
- getID3() v2 developer
- Posts:445
- Joined:Sun May 04, 2003 2:22 pm
- Location:Holmegaard, Denmark
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.
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.