PHP 한줄팁
하우코드
본문
# 한글, UTF-8 감지
mb_detect_encoding($str, 'UTF-8');
mb_detect_encoding($str, 'EUC-KR');
mb_detect_encoding($str, 'EUC-KR,UTF-8');
mb_detect_encoding($str, 'auto'); // 자동 감지
mb_detect_encoding($str, array('EUC-KR','UTF-8'));
mb_detect_encoding($str, 'UTF-8');
mb_detect_encoding($str, 'EUC-KR');
mb_detect_encoding($str, 'EUC-KR,UTF-8');
mb_detect_encoding($str, 'auto'); // 자동 감지
mb_detect_encoding($str, array('EUC-KR','UTF-8'));
댓글목록
등록된 댓글이 없습니다.