폼에 파일 여려개 보낼때

veloger·2022년 12월 15일
0
<form name ="edit" id="edit" action = "/project/write" method="post" enctype="multipart/form-data">

데이터가 깨지지 않지만 아스키 코드로 보내서 우리가 보기 위해서는 utf-8로 바꿔야하다.

받는 곳에서

  String title = new String(mapItems.get("title").get(0).getString().getBytes("ISO-8859-1"), "UTF-8");

0개의 댓글