@ResponseBody 한글깨짐 처리
전에 이래 저래 해봐도 실패했고, 어제 또 시도했으나 여전히 실패였다.
Http Response Browser 라는 놈으로 확인해보면 Header 값은 여전히 ISO 8859-1.
* 참고했던 정보들
그래서 오늘 다시 ResponseBody 한글깨짐 으로 구글링해보니 해결한 사례가 보였따.
http://tedwon.com/pages/viewpage.action?pageId=34603028
http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/http/ResponseEntity.html
참고? 아니... 베낀 내 소스는 아래와 같다.
jqgrid 연동테스트를 위해 json 값 하드코딩한 것을 뱉어주는 소스다.
package orgos.pss.backend.cmCode;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.http.*;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.SessionAttributes;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.support.SessionStatus;
......
@Controller
public class CmCodeController {
...............