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. 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. 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
Archived
This topic is now archived and is closed to further replies.