PHP
·
发表于 5年以前
·
阅读量:8303
SELECT COLLATIONPROPERTY('Chinese_PRC_Stroke_CI_AI_KS_WS', 'CodePage')
*µ»ØΪ936£¬¼´GBK±aÂe¡£
936 ¼oÌaÖÐÎÄGBK
950 *±ÌaÖÐÎÄBIG5
437 ÃÀ¹u/¼ÓÄôoÓ¢Ói
932 ÈÕÎÄ
949 º«ÎÄ
866 ¶iÎÄ
65001 unicode UFT-8
Èç¹u×Ö¶ÎÓÐÖÐÎÄ,PHPÎļþÉeÖñaÂeΪGBK2312£¬ÔoÈ¡Êý¾Ý¿aÐÅϢʱûÓÐÎÊÌa:
print_r($rs["¿Í»§±aÂe"]);
Èç¹uPHPÎļþÉeÖñaÂeΪutf-8£¬Ôo»a±¨¸ae´iÎo¡£
Èç¹u*ÇÒª°ÑphpÎļþµÄ±aÂeÉeÖÃΪutf-8£¬ÔoÐeҪת»»Ò»Ï±aÂe£º
print_r($rs[mb_convert_encoding("¿Í»§±aÂe","GBK","UTF-8")]);//´oÓ¡¼Ç¼Êý×e
ÕaÑu¾ÍûÓÐÎÊÌaÁË¡£