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âã¨è¨
{{#tags}}- {{label}}
{{/tags}}