Don't log "No suitable function found for UTF-8..." as E_USER_WARNING.
Use E_USER_NOTICE - this happens quite often as email messages
containing invalid charset name are not so rare.
| | |
| | | return utf8_encode($str); |
| | | } |
| | | else { |
| | | user_error("No suitable function found for UTF-8 encoding", E_USER_WARNING); |
| | | trigger_error("No suitable function found for UTF-8 encoding"); |
| | | } |
| | | } |
| | | |
| | |
| | | return utf8_decode($str); |
| | | } |
| | | else { |
| | | user_error("No suitable function found for UTF-8 decoding", E_USER_WARNING); |
| | | trigger_error("No suitable function found for UTF-8 decoding"); |
| | | } |
| | | } |
| | | |