DB 인코딩 문제
Spring/주소록 만들기 : 2006/11/20 21:33
왼쪽의 테스트 메소드를 통해서 DB에 들어있는 값이 제대로 출력되는지 확인하는 printDate(member);를 호출한 결과를 보면 다음과 같습니다.
1
???
whiteship2000@gmail.com
whiteship2000@hotmail.com
016-9889-6911
http://whiteship.tistory.com
setOneMember(); 메소드에서 member 객체를 DB에 하나 집어 넣는데요 그 객체 안에 들어있던 원래 정보는 다음과 같습니다.
int id = _id;
String name = "백기선";
String phone = "016-9889-6911";
String email = "whiteship2000@gmail.com";
String messengerId = "whiteship2000@hotmail.com";
String blugAddress = "http://whiteship.tistory.com";
따라서 한글이 지금 제대로 보이지 않고 있다는 것을 확인할 수 있습니다.
1
???
whiteship2000@gmail.com
whiteship2000@hotmail.com
016-9889-6911
http://whiteship.tistory.com
setOneMember(); 메소드에서 member 객체를 DB에 하나 집어 넣는데요 그 객체 안에 들어있던 원래 정보는 다음과 같습니다.
int id = _id;
String name = "백기선";
String phone = "016-9889-6911";
String email = "whiteship2000@gmail.com";
String messengerId = "whiteship2000@hotmail.com";
String blugAddress = "http://whiteship.tistory.com";
따라서 한글이 지금 제대로 보이지 않고 있다는 것을 확인할 수 있습니다.
table을 생성하는 쿼리문을 다음과 같이 수정한 뒤 실제로 Character Set이 바꼈는지 확인해 봤습니다.
URL 뒷부분도 다음과 같이 수정했습니다.
그러나 여전히 ??? 로 DB에 들어간다는 거~
more..
utf8로 설정 된 것을 확인할 수 있습니다.URL 뒷부분도 다음과 같이 수정했습니다.
more..
그러나 여전히 ??? 로 DB에 들어간다는 거~
아구 어지러~
'Spring > 주소록 만들기' 카테고리의 다른 글
| log4j.properties 파일 위치 시키기 (2) | 2006/12/04 |
|---|---|
| log4j 설정하기(in spring) (0) | 2006/12/02 |
| 수정해야 할 것들 (2) | 2006/11/28 |
| iBATIS에서 selectKey 사용하기 (2) | 2006/11/23 |
| MySQL 설치 시 주의 할 점 (6) | 2006/11/23 |
| DB 인코딩 문제 (0) | 2006/11/20 |
| SqlMapClientDaoSupport (0) | 2006/11/18 |
| AbstractTransactionalDataSourceSpringContextTests (4) | 2006/11/13 |
| 회원 목록 추가 (0) | 2006/11/13 |
| XML configuration (0) | 2006/11/10 |
| MySQL Connector Down + testAdd() (0) | 2006/11/10 |









