INT-1307 using charset.name() instead of charset itself in String constructor for Java 5 compatibility

This commit is contained in:
Mark Fisher
2010-08-02 03:11:45 +00:00
parent 57c47c7313
commit de82ec9eaf

View File

@@ -52,7 +52,7 @@ public class SimpleMultipartFileReader implements MultipartFileReader<Object> {
if (charset == null) {
charset = defaultCharset;
}
return new String(multipartFile.getBytes(), charset);
return new String(multipartFile.getBytes(), charset.name());
}
else {
return multipartFile.getBytes();