¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ñ¸ì¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS

·ÈÂÓ/ʸ»ú¥³¡¼¥É

Last-modified: 2018-11-14 (¿å) 15:24:16 (2214d)
Top / ·ÈÂÓ / ʸ»ú¥³¡¼¥É

·ÈÂÓ

ʸ»ú½¸¹ç(coded character set)

ʸ»ú½¸¹çÆâÍÆ
£±¥Ð¥¤¥È·Ïʸ»ú½¸¹çASCII, ISO-8859-1, JIS X 0201(JIS¥í¡¼¥Þ»ú¡¢¥«¥¿¥«¥Ê)
£²¥Ð¥¤¥È·Ïʸ»ú½¸¹çJIS X 0208(Â裱¡¢Â裲¿å½à´Á»ú¤Ê¤É), JIS X 0212(Êä½õ´Á»ú¤Ê¤É), JIS X 0213(JIS X 0208¤ËÂ裳¡¢Â裴¿å½à´Á»ú¤òÄɲÃ), Unicode

ʸ»úÉä¹æ²½Êý¼°(character encoding schema)

ʸ»úÉä¹æ²½Êý¼°ÆâÍÆ
ISO-2022-JP¤¤¤ï¤æ¤ëJIS¥³¡¼¥É
Shift_JISMicrosoft¤Ë¤è¤Ã¤ÆÀ©Äꤵ¤ì¡¢Â¿¤¯¤Î¥³¥ó¥Ô¥å¡¼¥¿¤ÇÍøÍѤµ¤ì¤Æ¤¤¤ëÊý¼°
EUC-JPÆüËܸìUNIX¥·¥¹¥Æ¥à»ðÌä°Ñ°÷²ñ¤ÎÄó°Æ¤Ë´ð¤Å¤¤¤ÆAT&T¤Ë¤è¤Ã¤ÆÀ©Äꤵ¤ì¤¿Êý¼°¡¢Â¿¤¯¤ÎUNIX¥³¥ó¥Ô¥å¡¼¥¿¤ÇÍøÍѤµ¤ì¤Æ¤¤¤ëÊý¼°
UTF-8Unicodeʸ»ú½¸¹ç¤òÍøÍѤ·¤¿Éä¹æ²½Êý¼°¡£Microsoft, Apple, IBM, Sun Microsystems¤Ê¤É¤Î´ë¶È¤¬Ãæ¿´¤È¤Ê¤Ã¤ÆÀ©Äꤷ¡¢ISO¤Çɸ½à²½¡£Mac OS X¤äLinux¤Ê¤É¤ÇÍøÍѤµ¤ì¤Æ¤¤¤ëÊý¼°

³¨Ê¸»ú¤òPHPÆâÉô¤Ç¼è¤ê°·¤¦¤¿¤á¤Îʸ»ú¥³¡¼¥É

³¨Ê¸»ú¤ÏShift_JIS¤äEUC¤Ç¤ÏÈϰϳ°¤Îʸ»ú¤È¤Ê¤Ã¤Æ¤ª¤ê¡¢Microsoft¥³¡¼¥É¥Ú¡¼¥¸932(CP932)¤È¸Æ¤Ð¤ì¤ë³ÈÄ¥¤òŬÍѤ¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ°·¤¨¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

¥Ù¡¼¥¹¤È¤Ê¤ëʸ»ú¥³¡¼¥ÉCP932¤Ç³ÈÄ¥¤·¤¿Ê¸»ú¥³¡¼¥É
Shift_JISSJIS-win
EUCeucJP-win
UnicodeUnicode¤Ç¤Ï³¨Ê¸»ú¤ò¤½¤Î¤Þ¤Þ°·¤¨¤Þ¤¹

Ãí¡§MySQL¤ÇCP932¤ËÂбþ¤·¤Æ¤¤¤ë¥Ð¡¼¥¸¥ç¥ó¤Ï¡¢4.2.12¡Á¤Þ¤¿¤Ï5.0.3¡Á¤Ç¤¹

SoftBank 3GC·¿¤Ç¤ÏUTF-8¤Ç¥Ú¡¼¥¸¤ò½ÐÎϤ¹¤ë¤Î¤¬¥Ù¥¿¡¼

¤³¤ì¤Þ¤Ç¤Ï£³¥­¥ã¥ê¥¢¤È¤â¥Ú¡¼¥¸¤òShift_JIS¤Ç½ÐÎϤ¹¤ë¤³¤È¤¬Â¿¤«¤Ã¤¿¤Ç¤¹¤¬¡¢SoftBank 3GC·¿Ã¼Ëö¤Ç¤Ï¼¡¤ÎÍýͳ¤«¤éUnicode¤Ç½ÐÎϤ¹¤ë¤Î¤¬Ë¾¤Þ¤·¤¤¤Ç¤¹¡£¥¹¥Þ¡¼¥È¥Õ¥©¥ó¤Ç¤ÏUTF-8¤Ç½ÐÎϤ·¤Þ¤¹¤Î¤Ç¡¢½ÐÎÏ¥³¡¼¥É¤òʬ¤±¤ë¤Î¤¬¥È¥ì¥ó¥É¤È¤Ê¤ê¤½¤¦¤Ç¤¹¡£

  • SoftBank 3GC·¿¤Î°ìÉôüËö¤Ç¤Ï¡¢Shift_JIS¤Ç¥Ú¡¼¥¸¤òºîÀ®¤¹¤ë¤È¥Æ¥­¥¹¥ÈÆþÎϤdz¨Ê¸»ú¤¬ºï¤é¤ì¤Þ¤¹
  • SoftBanküËö¤Ç¤Ï¥á¡¼¥ë¥ê¥ó¥¯¤òUTF-8¤Çurlencode¤¹¤ëɬÍפ¢¤ê¤Þ¤¹
  • Ë¿·ÈÂÓSNS¥µ¥¤¥È¤Ç¤ÏSoftBanküËö¤Î¥Ú¡¼¥¸¤ÏUTF-8¤Çµ­½Ò¤¹¤ë¤³¤È¤¬É¬¿Ü¤Ç¤¹ Ãí¡§SoftBank 3GC·¿, P·¿¤Î°ìÉô, W·¿¤¬UTF-8¤ËÂбþ¤·¤Æ¤¤¤Þ¤¹¡£C·¿¤ª¤è¤Ó¿¤¯¤ÎP·¿¤ÏÈóÂбþ¤Ç¤¹

    ½ÐÎÏʸ»ú¥³¡¼¥É¤Ïmeta¥¿¥°¤Ç»ØÄꤷ¤Þ¤¹¡£SJIS-win¤Ç½ÐÎϤ¹¤ë¤È¤­Microsoft CP932¤Î»ØÄê¤Ï¤¢¤ê¤Þ¤»¤ó¤Î¤Ç'Shift_JIS'¤È»ØÄꤷ¤Þ¤¹¡£
    ½ÐÎÏʸ»ú¥³¡¼¥ÉXHTML¥Ú¡¼¥¸¤Ëµ­½Ò¤¹¤ëmeta¥¿¥°
    SJIS-win<meta http-equiv="Content-Type" content="text/html;charset='Shift_JIS'" />
    UTF-8<meta http-equiv="Content-Type" content="text/html;charset='UTF-8'" />

ʸ»ú¥³¡¼¥ÉÊÑ´¹¥µ¥ó¥×¥ë¥½¡¼¥¹

·ÈÂÓüËö¤«¤éSJIS-win¤ÎPOST¤Þ¤¿¤ÏGET¤ÇÅϤµ¤ì¤¿Ãͤò¡¢PHPÆâÉôʸ»ú¥³¡¼¥É¤ËÊÑ´¹

<?php
function input_encode()
{
	if (isset($_GET) {
		mb_convert_variables(mb_internal_encoding(), 'SJIS-win', $_GET);
	}
	if (isset($_POST) {
		mb_convert_variables(mb_internal_encoding(), 'SJIS-win', $_POST);
	}
}
?>

Ãí¡§SoftBank 3GC·¿¤ÇUnicode¤Î¥Ú¡¼¥¸¤òºîÀ®¤·¤¿¤È¤­¤Ï¡¢·ÈÂÓüËö¤«¤éUnicode¤ÇÃͤ¬Ìá¤Ã¤Æ¤­¤Þ¤¹¡£¤½¤Î¾ì¹ç¤ÏSoftBank 3GC¤À¤±ÊÑ´¹¸µ¤òUnicode¤È¤¹¤ë¤è¤¦¥«¥¹¥¿¥Þ¥¤¥º¤·¤Æ¤¯¤À¤µ¤¤

PHPÆâÉôʸ»ú¥³¡¼¥É¤ò½ÐÎÏ»þ¤Ë°ìΧSJIS-win¤ÈÊÑ´¹¤¹¤ë¾ì¹ç¤Î¥½¡¼¥¹

ini_set('mbstring.http_output', 'SJIS-win');

¥ê¥ó¥¯