본문 바로가기

캐릭터셋 테스팅(euc-kr, utf8)


1.문서저장형식(php) : UTF8
2.MYSQL 테이블형식 : UTF8
3.FLEX : UTF8


1.문서저장형식(php) : ANSI
2.MYSQL : UTF8
3.mysql_query("set names utf8"); 후 INSERT시 한글 안 깨짐.
4.mysql_query("set names utf8"); 이든 euc-kr이든 안하고 넣음 깨짐.

이상적인 형태 :
flex : utf8,
mysql:utf8,
php : utf8

현재 쓰고 있는 형태 :
flex : utf8
mysql:utf8
php:ansi

mysql_query("set names euckr");
한글 insert전
iconv('utf-8', 'euc-kr',$str) 해서 저장 하고
빼올 때도 iconv('euc-kr', 'utf-8', $str)로 flex로 던져줌

변경 및 새로 해야 할 것.
flex     : utf8
mysql : utf8
php     : ansi
mysql_query("set names utf8");
insert는 걍

이상적인거.
flex    : uft8
mysql : utf8
php    : utf8

귀찮군.

그간 php(ANSI)에 수없이 해놨던
mysql_query("set names euckr"); 이며
iconv('utf-8', 'euc-kr', $str);
다 어쩔껴..

극심한 귀차니즘~~