■文字エンコーディングのチェック例

<?php

$temp = isset($_GET['id']) ? $_GET['id'] : '';

    if (! mb_check_encoding($id, 'SHIFT_JIS')) {

        die('文字エンコーディングが正しくありません');

}

?>

 

■文字エンコーディングの変換例

<?php

$id = mb_convert_encoding($id, 'UTF-8', 'SHIFT_JIS');

?>

 

55 Comments

  1. bienes raices cabo san lucas says:

    … [Trackback]

    […] Info to that Topic: dragon-ark.com/archives/536 […]

  2. Buy Franchi 2005 Shotguns Online says:

    … [Trackback]

    […] Read More here to that Topic: dragon-ark.com/archives/536 […]

  3. επισκευη πλυντηριου says:

    … [Trackback]

    […] Read More Info here on that Topic: dragon-ark.com/archives/536 […]

  4. more information says:

    … [Trackback]

    […] Here you can find 83004 additional Information to that Topic: dragon-ark.com/archives/536 […]

Leave a Reply