seco Posted February 12, 2008 Share Posted February 12, 2008 Hi i get error when using utf8.class.php and this is the class link http://www.phpclasses.org/browse/file/7820.html the error says:- Call to a member function loadCharset() on a non-object i write the following <?php require_once("c_utf8/utf8.class.php"); $utfConverter->loadCharset("CP1256"); for( reset( $_POST); $key = key( $_POST); next( $_POST) ) { if (is_string($_POST[$key])) $mypost[$key]= $utfConverter->utf8ToStr($_POST[$key]); } ?> any help thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/90692-call-to-a-member-function-loadcharset-on-a-non-object/ Share on other sites More sharing options...
trq Posted February 12, 2008 Share Posted February 12, 2008 You haven't instantiated the class. Quote Link to comment https://forums.phpfreaks.com/topic/90692-call-to-a-member-function-loadcharset-on-a-non-object/#findComment-464871 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.