¥È¥Ã¥×   ¿·µ¬ °ìÍ÷ ñ¸ì¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS

PHP/ʸ»ú¥³¡¼¥É ¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×(No.1)


PHP

UTF-8¤Çºî¤Ã¤¿¥Ú¡¼¥¸¤òShift-JIS¤Ç½ÐÎϤ¹¤ëÊýË¡

?php header('Content-Type: text/html; charset=Shift_JIS'); ob_start(); ?> ¤³¤³¤ËShift-JIS¤Ç½ÐÎϤ·¤¿¤¤ÆâÍƤòUTF-8¤Çµ­½Ò¡£

?php $output = ob_get_contents(); ob_end_clean(); echo mb_convert_encoding($output, "SJIS", "UTF-8"); ?>