目前分類:PHP (2)

瀏覽方式: 標題列表 簡短摘要

 <?php

  mb_internal_encoding ('utf8');

  mysql_query ("SET CHARACTER SET 'utf8'");

  mysql_query ("SET NAMES 'utf8'");

  mysql_select_db(Database_Name)

 ?>

maxis1718 發表在 痞客邦 留言(0) 人氣()

 <?php

  $input = iconv("BIG5", "UTF-8", $input);

  $pattern = '/[\x{4e00}-\x{9fa5}]+/u';

  preg_match_all ( $pattern, $input, $matches );

 ?>

maxis1718 發表在 痞客邦 留言(0) 人氣()