seco Posted February 12, 2008 Share Posted February 12, 2008 Hi my $_post when i debug it i found it utf-8 encoded and i use utf8.class and load the map file to convert the encoding an i write the following require_once("c_utf8/utf8.class.php"); $utf8 = new utf8(CP1256); for( reset( $_POST); $key = key( $_POST); next( $_POST) ) { if (is_string($_POST[$key])) $mypost[$key]= $utf8->utf8ToStr($_POST[$key]); } i found that it print the contents of the map file to my page !!!!! why? any help and this is utf8.class http://www.phpclasses.org/browse/package/1974.html thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/90647-how-to-set-the-encoding-of-_post-array/ 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.