This commit is contained in:
Arjen Poutsma 2009-09-15 09:17:10 +00:00
parent 5fa7347641
commit 9f19e5e73b
1 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@ import org.springframework.util.FileCopyUtils;
import org.springframework.util.LinkedMultiValueMap; import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap; import org.springframework.util.MultiValueMap;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import org.springframework.web.util.WebUtils;
/** /**
* Implementation of {@link HttpMessageConverter} that can read and write form data. * Implementation of {@link HttpMessageConverter} that can read and write form data.
@ -47,7 +48,7 @@ import org.springframework.util.StringUtils;
*/ */
public class FormHttpMessageConverter extends AbstractHttpMessageConverter<MultiValueMap<String, String>> { public class FormHttpMessageConverter extends AbstractHttpMessageConverter<MultiValueMap<String, String>> {
public static final Charset DEFAULT_CHARSET = Charset.forName("ISO-8859-1"); public static final Charset DEFAULT_CHARSET = Charset.forName(WebUtils.DEFAULT_CHARACTER_ENCODING);
/** Creates a new instance of the {@code FormHttpMessageConverter}. */ /** Creates a new instance of the {@code FormHttpMessageConverter}. */
public FormHttpMessageConverter() { public FormHttpMessageConverter() {