Conversation
|
I'm torn on this one -- on the one hand, the notices are annoying, but on the other hand if there's an actual error being reported in the call to iconv that would suppress it. iconv is still an annoying function overall, but I'm not convinced this is a good idea particularly because both the mb_convert_encoding and iconv calls can fail if the charset isn't supported. What are your thoughts on suppressing those errors? |
|
My idea was to suppress iconv notices, they are generally not so much useful, I didn't think about the errors thought... We can catch the errors using the iconv return value, from the PHP documentation it says that iconv return |
|
The trouble is catching it means I have to decide on some form of error handling/reporting which I've completely avoided... do I:
The other problem is because I've caught the error, I wouldn't have a meaningful message to pass on. |
No description provided.