php¿¡¼ UTF - 8, EUC - KR ÀÎÄÚµù º¯°æ |
|
|
![](icon/private_name/1.gif) |
13³â Àü |
UTF-8À» EUC-KR·Î º¯°æ
$str = iconv("UTF-8", "EUC-KR", $str);
EUC-KRÀ» UTF-8·Î º¯°æ
$str = iconv("EUC-KR", "UTF-8", $str);
´Ù¸¥ ¼¹ö¿¡¼ ±Û ³»¿ëÀ» °¡Á®¿Í ÆĽÌÇÏ´Â °æ¿ì¿¡ ƯÈ÷ ¸¹ÀÌ »ç¿ëÇÏ°Ô µÈ´Ù.
»ó½ÄÀûÀ¸·Î ¾Ë¾ÆµÑ Á¡: EUC-KR¿¡¼ ÇѱÛÀº 2byte, UTF-8¿¡¼ ÇѱÛÀº 3byteÀÌ´Ù.
±ÛÀÚ¼ö ±âÁØÀ¸·Î substr() ÇÔ¼ö¸¦ ÀÌ¿ëÇÏ¿© ÀÚ¸¦ ¶§ Âü°íÇصÎÀÚ.
|
|
̵̧ : 426 |
̵̧
¸ñ·Ï
|
|