반응형 한글2 Java와 Mysql 연동시 한글 깨짐 문제 해결법 public String toMySQL(String msg){ try{ return new String(msg.getBytes("KSC5601"), "8859_1"); }catch(Exception e){ e.printStackTrace(); return null; } } public String toJava(String msg){ try{ return new String(msg.getBytes("8859_1"), "KSC5601"); }catch(Exception e){ e.printStackTrace(); return null; } } 두개의 메서드를 구현해주어 전송하거나 전송 받을 쿼리문자를 인코딩 해주면 된다. 2010. 8. 11. Fedora 9 한글 입력하기 yum -y install scim-lang-korean 위 명령어를 실행하여 scim 패키지를 설치하자 ㅇㅅㅇㅋㅋ ※디폴트 한/영 전환키는 shift+space 2010. 8. 11. 이전 1 다음 반응형