[[FrontPage]] UTF-8日本語ページ対応 >// %uXXXXという文字列を含む文字列を正しい日本語文字列に戻す。 >function conv_knj_escape($str) >{ > return mb_convert_encoding( > preg_replace_callback("/%u([0-9a-fA-F][0-9a-fA-F])([0-9a-fA-F][0-9a-fA-F])/","_conv_escape",$str), > "UTF-8","auto"); > >} > >function _conv_escape($matches){ > return mb_convert_encoding(rawurldecode("%".$matches[1]."%".$matches[2]),"UTF-8","UCS-2"); >} php-stats.php(71): $tmpTitle = addslashes(conv_knj_escape(urldecode($_GET['t']))); php-stats.php(366): function conv_knj_escape($str) php-stats.recjs.php(77): $tmpTitle = addslashes(conv_knj_escape(urldecode($_GET['t']))); php-stats.recjs.php(226): function conv_knj_escape($str) files_Write\php-stats.php(71): $tmpTitle = addslashes(conv_knj_escape(urldecode($_GET['t']))); files_Write\php-stats.php(367): function conv_knj_escape($str) files_Write\php-stats.recjs.php(77): $tmpTitle = addslashes(conv_knj_escape(urldecode($_GET['t']))); files_Write\php-stats.recjs.php(226): function conv_knj_escape($str)