PHPã使ã£ã¦ãã£ã2è¡ã§çµµæåãåãé¤ãæ¹æ³ Tweet 2007/11/28 æ°´ææ¥ matsui Posted in PHP | 2 Comments » ä»åã¯ãPHPã§ä¸çªç°¡åã¨æããããçµµæåãåãé¤ãæ¹æ³ããç´¹ä»ãã¾ãã iã¢ã¼ãã¨auãããã³ã½ãããã³ã¯ã®SJISå½¢å¼ã®çµµæåãåãé¤ããã¨ãã§ãã¾ãã ãµã³ãã«ã³ã¼ã $str = 'çµµæå[æ´ã]'; mb_substitute_character('none'); $str = mb_convert_encoding($str, 'SJIS', 'SJIS'); // åºå echo $str; â»ã½ã¼ã¹ã¯SJISã§è¨è¿°ãã¦ãã ãã ããã ãã§OKã§ãã ãmb_substitute_characterãã¯ãåå¨ããªãæåã³ã¼ããããå ´åï¼ããããã²ã¿ã«ãªãå ´åï¼ã®å¦çãè¨å®ãããããã®ãã®ã§ãã ããã§ânoneâã¨è¨
ke-tai.orgããã§ã±ã¼ã¿ã¤ã«çµµæåå ¥ãã¡ã¼ã«ãéä¿¡ããã«ã¯ï¼SoftBankç·¨ï¼ã®è¨äºããããã ãã®è¨äºã®æ¹æ³ã ã¨ãä¸é¨ç«¯æ«ã§çµµæåãåããã çãæç« ã®å ´åãæ£ãã表示ããããé·ãæç« ã®ã¡ã¼ã«ã§ãç¶ããåä¿¡ãããªããã°èªããªãã¡ã¼ã«ã¯ãç¶ããåä¿¡ããæ¼ãã¨çµµæåãåãã¾ãã 810T, 812SHã§ä¸è¨ã®æååãã確èªã§ãã¾ãããï¼ããããä»ã«ãããã¨æãã¾ãã ã§ã¯ãã©ãããã°ããã®ãï¼ ã£ã¦ãã¨ã§ãè²ã 試ãã¦ã¿ããåããªãæ¹æ³ãè¦ã¤ãã¾ããã ã¡ã¼ã«ã®éä¿¡æ¹æ³èªä½ã¯ãke-tai.orgããã®è¨äºã¨åãã§ãã¾ãã¾ããããçµµæåã®å ¥åæ¹æ³ãShift_JISã®ãã¤ããªã«ãã¦ä¸ããã 以ä¸ããµã³ãã«ã <?php $subject = '件å'.pack('H*', 'F941'); $body = 'çµµæåãã¹ã'.pack('H*', 'F942'); // ...以ä¸ã¯ã¡
ã±ã¼ã¿ã¤ã®ã¡ã¢ãã«ã¡ã¼ã«ãéããªãããã£ã±çµµæåå ¥ãã§éãããã£ãããããã¡ãã£ã¨çµµæå使ãã ãã§ãçµæ§è¯ãããªæãã«ãªãã¾ããããã¾ããã³ã¡ã®ã»ãããã£ã¨ããã«ãªããã©ãä½ãã®ãéãã®ã大å¤ããã£ã±çµµæå使ãããããã§ååã ã¨æã£ã¦PHPã§çµµæåã¡ã¼ã«ãéä¿¡ãããµã³ãã«ã³ã¼ãã¨ãã©ã¤ãã©ãªãæ¤ç´¢ãã¦ã¿ãã¨ãããæå¤ã¨ç¡ãã ãããã£ã¦ãã§ãä½ã£ã¦ã¿ã¾ããã çµµæåã¡ã¼ã«éä¿¡ã©ã¤ãã©ãªãmobi_mail_class.phpã mobi_mail_class.zip ãoutputfilter.emoji.phpãåæ§ã件åãæ¬æã«Unicodeå½¢å¼( xxx;)ã§iã¢ã¼ãçµµæåãè¨è¼ãã¦ããã¨ãåãã£ãªã¢ã«å¯¾å¿ããçµµæåã«å¤æãã¦ã¡ã¼ã«ãéä¿¡ãã¦ãããã¨ããããã§ãã ã使ãæ¹ã ï¼ï¼é©å½ãªã¨ããã«ãmobi_mail_class.phpããç½®ãã¾ãã ï¼ï¼ä»¥ä¸ã®ãããªã³ã¼ããæ¸ãã¾ã
æºå¸¯çµµæåå¤æã¹ã¯ãªããï¼PHPé å¸ï¼ æºå¸¯3ãã£ãªã¢ï¼NTTãã³ã¢,au,ã½ãããã³ã¯ï¼ã®å ±éçµµæåã表示ããã¹ã¯ãªããã§ãã å¾æ¥ãçµµæåã«ã¤ãã¦ã¯åãã£ãªã¢ç¸äºã«äºææ§ããªããæºå¸¯ãµã¤ããå¶ä½ããéã¯åãã£ãªã¢ã«åããããã¼ã¸ãå¶ä½ããå¿ è¦ãããã¾ãããããã®ã¹ã¯ãªãããå©ç¨ãããã¨ã§ã1ã¤ã®ãã¼ã¸ã§3ãã£ãªã¢ã«å¯¾å¿ããããã¼ã¸ä½ããå¯è½ã¨ãªãã¾ãã ããã°ã©ã æ¦è¦ å ±éçµµæåå¤æ表ã«åºã¥ãããã³ã¢ã®çµµæåãåºæºã«ãauã¨ã½ãããã³ã¯åãã®æºå¸¯é»è©±ã«å¯¾ããåçã®çµµæåã表示ãã¾ãã ã¹ã¯ãªããã®å¼ã³åºãã¯SSIãå©ç¨ãããããç¾å¨ã®HTMLãPHPã«å¤æãããããå¿ è¦ã¯ããã¾ããã ã¹ã¯ãªããã¯PHPåä½ã§åä½ãããããHTMLå ã®çµµæåã表示ãããé¨åã«ä¸å®ã®è¨è¿°ï¼SSIï¼ã追å ããã ãã§ãçµµæåãç°¡åã«è¡¨ç¤ºããããã¨ãã§ãã¾ãã âãµã³ãã« â»ãµã³ãã«ç»é¢ã«ã¯ããã¾ããããã½ãã
2008å¹´11æ25æ¥è¿½è¨ ä¸è¨ã®æ å ±ã¯å¤ããªã£ã¦ãã¾ãã ææ°ã®ã¹ã¯ãªããã¯ä»¥ä¸ã§é å¸ãã¦ãã¾ãã âhttp://www.dspt.net/tools/emoji/ 3ãã£ãªã¢å¯¾å¿ãµã¤ããä½æããããã«ãããã¯ãªã®ã¯çµµæåã®äºææ§ã ãã³ã¢ã®çµµæåã§å ¥åãããã¼ã¸ãä½æãã¦ãä»ã®ãã£ãªã¢ã®æºå¸¯ã§è¦ãã¨ãauã¯ãµã¼ãã¼å´ã§èªåå¤æããã¾ãããã½ãããã³ã¯ã¯å¯¾å¿ãã¦ããªãã®ã§è¡¨ç¤ºããã¾ããã ããã§ããã£ãªã¢ã«åããã¦ãã³ã¢&auã¨ã½ãããã³ã¯ã¨ãã2ãã¼ã¸ã§ãã¼ã¸ãä½ãã®ã¯é¢åã ãã 3ãã£ãªã¢å¥ã ã«ä½æãã¦ããã¡ãã¡åãçµµæåãæ¢ãã¦å ¥åããã®ã¯å°ã é¢åã§ãã ããã§ãçµµæåãèªåå¤æãã¦ãããã¹ã¯ãªãããç»å ´ããããã§ããã åãæ¢ããã¨ããããªã¼ã£ã¦ã®ã¯ãªããªããªãã¿ããã§ãã ã¨ãããã¨ã§ä½ã£ã¦ã¿ã¾ããã çµµæåãå¤æããã«ããã£ã¦ãã¾ãèããªãã¦ã¯ãªããªãã®ã¯ã çµµæåã®ç¸äºå¤
ããã > è¨ç½®ã®åºæ¬ > çµµæåã®è¡¨ç¤ºã«ã¤ã㦠ç®æ¬¡ MobilePictogramConverterã®å°å ¥ ãã¡ã¤ã«ã®å ¥æ ãã¡ã¤ã«ã®ã¢ãããã¼ã è¨å®ãã¡ã¤ã«ã®ç·¨é MobilePictogramConverterã®å°å ¥ PHP Labo ã§é å¸ãã¦ããããã°ã©ã ã¯ãMobilePictogramConverterãå°å ¥ãããã¨ã«ããæºå¸¯ã®çµµæåã表示ã§ãã¾ãã 注æç¹ ãã½ã³ã³ããã®çµµæåå ¥åã¯ãDocomoã®Webå ¥åã³ã¼ãï¼Unicodeï¼ã§è¡ãã¾ãã ã¡ã¼ã«ãéä¿¡ããéãçµµæåã¯ãã¹ã¦åé¤ããã¾ãã ã¡ã¼ã«æ稿æ©è½ãªã©ã§ã¡ã¼ã«ãåä¿¡ããéãçµµæåã¯æ£ããåæ ããã¾ããã ãã¡ã¤ã«ã®å ¥æ MobilePictogramConverterã¯ã以ä¸ã®å ¬å¼ãµã¤ããããã¦ã³ãã¼ããããã¨ãã§ãã¾ãã MobilePictogramConverter çµµæåå¤æã©ã¤ãã©ãª ãã¦ã³ãã¼ã
CodeZineç·¨éé¨ã§ã¯ãç¾å ´ã§æ´»èºãããããããã¼ãã¹ã¿ã¼ã«ããããã®ã«ã³ãã¡ã¬ã³ã¹ãDevelopers Summitãããã¨ã³ã¸ãã¢ã®çããã¾ããã¼ã¹ãããããã®ã¤ãã³ããDevelopers Boostããªã©ããã¾ãã¾ãªã«ã³ãã¡ã¬ã³ã¹ãä¼ç»ã»éå¶ãã¦ãã¾ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}