public class StringUtil {
public static String toKor(String value){
if(value == null){
return null;
}
try{
return new String(value.getBytes("8859_1"), "utf-8");
}catch(Exception e){
e.printStackTrace();
}
return null;
}
}
'웹 & 프레임워크' 카테고리의 다른 글
| Dispatcher Servlet 컨트롤러 원리 (0) | 2014.05.09 |
|---|---|
| 스프링에서 컨트롤러(Controller)와 Request-Mapping 이용방법 (0) | 2014.05.09 |
| RowMapper대신 BeanPropertyRowMapper를 써서 쉽게 jdbc템플릿 쓰기 (0) | 2014.05.09 |
| JSON과 XML을 이용한 비동기통신 (0) | 2014.05.08 |
| JSP 상에서 다른페이지 import 해오기 (0) | 2014.05.08 |